diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-03-09 12:51:25 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-03-09 12:51:25 +0000 |
commit | 68f9e1ad5772ceeddec11a602d6eaf4806adec16 (patch) | |
tree | cbe3223a8afa9185266e5077dc451a832a59ee1d | |
parent | 98cd3e8868a54541dce9875dfaf04e2695a97c37 (diff) | |
download | rockbox-68f9e1ad5772ceeddec11a602d6eaf4806adec16.tar.gz rockbox-68f9e1ad5772ceeddec11a602d6eaf4806adec16.zip |
Guess there were more changes to it.:) Odd that mine built until a make clean.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12694 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/playback.c | 18 | ||||
-rw-r--r-- | firmware/mp3_playback.c | 57 | ||||
-rw-r--r-- | firmware/powermgmt.c | 3 |
3 files changed, 15 insertions, 63 deletions
diff --git a/apps/playback.c b/apps/playback.c index 31ec21afda..37a5de97b2 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -181,12 +181,7 @@ enum { | |||
181 | #define IBSS_ATTR_VOICE_STACK IBSS_ATTR | 181 | #define IBSS_ATTR_VOICE_STACK IBSS_ATTR |
182 | #endif | 182 | #endif |
183 | 183 | ||
184 | #ifndef SIMULATOR | 184 | bool audio_is_initialized = false; |
185 | extern bool audio_is_initialized; | ||
186 | #else | ||
187 | static bool audio_is_initialized = false; | ||
188 | #endif | ||
189 | |||
190 | 185 | ||
191 | /* Variables are commented with the threads that use them: * | 186 | /* Variables are commented with the threads that use them: * |
192 | * A=audio, C=codec, V=voice. A suffix of - indicates that * | 187 | * A=audio, C=codec, V=voice. A suffix of - indicates that * |
@@ -381,6 +376,17 @@ void mp3_play_stop(void) | |||
381 | #endif | 376 | #endif |
382 | } | 377 | } |
383 | 378 | ||
379 | void mp3_play_pause(bool play) | ||
380 | { | ||
381 | /* a dummy */ | ||
382 | (void)play; | ||
383 | } | ||
384 | |||
385 | bool mp3_is_playing(void) | ||
386 | { | ||
387 | return voice_is_playing; | ||
388 | } | ||
389 | |||
384 | bool mp3_pause_done(void) | 390 | bool mp3_pause_done(void) |
385 | { | 391 | { |
386 | return pcm_is_paused(); | 392 | return pcm_is_paused(); |
diff --git a/firmware/mp3_playback.c b/firmware/mp3_playback.c index a5a251160e..bd6ba60777 100644 --- a/firmware/mp3_playback.c +++ b/firmware/mp3_playback.c | |||
@@ -72,7 +72,6 @@ static void (*callback_for_more)(unsigned char**, int*); | |||
72 | bool audio_is_initialized = false; | 72 | bool audio_is_initialized = false; |
73 | #endif | 73 | #endif |
74 | 74 | ||
75 | #if CONFIG_CODEC != SWCODEC | ||
76 | /* FIX: this code pretty much assumes a MAS */ | 75 | /* FIX: this code pretty much assumes a MAS */ |
77 | 76 | ||
78 | #ifndef SIMULATOR | 77 | #ifndef SIMULATOR |
@@ -594,59 +593,3 @@ unsigned char* mp3_get_pos(void) | |||
594 | 593 | ||
595 | 594 | ||
596 | #endif /* #ifndef SIMULATOR */ | 595 | #endif /* #ifndef SIMULATOR */ |
597 | |||
598 | #else /* CONFIG_CODEC != SWCODEC */ | ||
599 | void mp3_init(int volume, int bass, int treble, int balance, int loudness, | ||
600 | int avc, int channel_config, int stereo_width, | ||
601 | int mdb_strength, int mdb_harmonics, | ||
602 | int mdb_center, int mdb_shape, bool mdb_enable, | ||
603 | bool superbass) | ||
604 | { | ||
605 | /* a dummy */ | ||
606 | (void)volume; | ||
607 | (void)bass; | ||
608 | (void)treble; | ||
609 | (void)balance; | ||
610 | (void)loudness; | ||
611 | (void)avc; | ||
612 | (void)channel_config; | ||
613 | (void)stereo_width; | ||
614 | (void)mdb_strength; | ||
615 | (void)mdb_harmonics; | ||
616 | (void)mdb_center; | ||
617 | (void)mdb_shape; | ||
618 | (void)mdb_enable; | ||
619 | (void)superbass; | ||
620 | |||
621 | paused = false; | ||
622 | playing = false; | ||
623 | #ifndef SIMULATOR | ||
624 | playstart_tick = 0; | ||
625 | cumulative_ticks = 0; | ||
626 | callback_for_more = 0; | ||
627 | #endif | ||
628 | } | ||
629 | |||
630 | void mp3_shutdown(void) | ||
631 | { | ||
632 | /* a dummy */ | ||
633 | } | ||
634 | |||
635 | void mp3_play_pause(bool play) | ||
636 | { | ||
637 | /* a dummy */ | ||
638 | (void)play; | ||
639 | } | ||
640 | |||
641 | unsigned char* mp3_get_pos(void) | ||
642 | { | ||
643 | /* a dummy */ | ||
644 | return (unsigned char *)0x1234; | ||
645 | } | ||
646 | |||
647 | bool mp3_is_playing(void) | ||
648 | { | ||
649 | return playing; | ||
650 | } | ||
651 | |||
652 | #endif /* CONFIG_CODEC == SWCODEC */ | ||
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 7948e9ad18..bbb98144fb 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -1315,7 +1315,10 @@ void shutdown_hw(void) | |||
1315 | remote_backlight_off(); | 1315 | remote_backlight_off(); |
1316 | #endif | 1316 | #endif |
1317 | 1317 | ||
1318 | #if CONFIG_CODEC != SWCODEC | ||
1318 | mp3_shutdown(); | 1319 | mp3_shutdown(); |
1320 | #endif | ||
1321 | |||
1319 | #ifdef HAVE_UDA1380 | 1322 | #ifdef HAVE_UDA1380 |
1320 | audiohw_close(); | 1323 | audiohw_close(); |
1321 | #elif defined(HAVE_TLV320) | 1324 | #elif defined(HAVE_TLV320) |