diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-27 01:35:33 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-27 01:35:33 +0000 |
commit | 736a19266d2e3fb51751b86c9b84d10dc567ecd5 (patch) | |
tree | 16444a0680af68b2b8ea0321683776cea17c1ee9 /apps/recorder/radio.c | |
parent | 32e27d93e883384cffb846998119ecdfd9b8fed7 (diff) | |
download | rockbox-736a19266d2e3fb51751b86c9b84d10dc567ecd5.tar.gz rockbox-736a19266d2e3fb51751b86c9b84d10dc567ecd5.zip |
The status bar now keeps track of the mpeg status, instead of having to call status_set_playmode() all the time
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4806 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r-- | apps/recorder/radio.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index feea3fa5f2..d6a0b82cc9 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c | |||
@@ -171,8 +171,6 @@ bool radio_screen(void) | |||
171 | mpeg_sound_set(SOUND_SUPERBASS, global_settings.bass_boost); | 171 | mpeg_sound_set(SOUND_SUPERBASS, global_settings.bass_boost); |
172 | mpeg_sound_set(SOUND_AVC, global_settings.avc); | 172 | mpeg_sound_set(SOUND_AVC, global_settings.avc); |
173 | 173 | ||
174 | status_set_playmode(STATUS_STOP); | ||
175 | |||
176 | /* Yes, we use the D/A for monitoring */ | 174 | /* Yes, we use the D/A for monitoring */ |
177 | peak_meter_playback(true); | 175 | peak_meter_playback(true); |
178 | 176 | ||
@@ -241,7 +239,6 @@ bool radio_screen(void) | |||
241 | if(mpeg_status() == MPEG_STATUS_RECORD) | 239 | if(mpeg_status() == MPEG_STATUS_RECORD) |
242 | { | 240 | { |
243 | mpeg_stop(); | 241 | mpeg_stop(); |
244 | status_set_playmode(STATUS_STOP); | ||
245 | } | 242 | } |
246 | else | 243 | else |
247 | { | 244 | { |
@@ -262,7 +259,6 @@ bool radio_screen(void) | |||
262 | have_recorded = true; | 259 | have_recorded = true; |
263 | talk_buffer_steal(); /* we use the mp3 buffer */ | 260 | talk_buffer_steal(); /* we use the mp3 buffer */ |
264 | mpeg_record(rec_create_filename(buf)); | 261 | mpeg_record(rec_create_filename(buf)); |
265 | status_set_playmode(STATUS_RECORD); | ||
266 | update_screen = true; | 262 | update_screen = true; |
267 | } | 263 | } |
268 | last_seconds = 0; | 264 | last_seconds = 0; |
@@ -462,7 +458,6 @@ bool radio_screen(void) | |||
462 | 458 | ||
463 | if(mpeg_status() & MPEG_STATUS_ERROR) | 459 | if(mpeg_status() & MPEG_STATUS_ERROR) |
464 | { | 460 | { |
465 | status_set_playmode(STATUS_STOP); | ||
466 | splash(0, true, str(LANG_DISK_FULL)); | 461 | splash(0, true, str(LANG_DISK_FULL)); |
467 | status_draw(true); | 462 | status_draw(true); |
468 | lcd_update(); | 463 | lcd_update(); |