diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2008-07-03 13:37:57 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2008-07-03 13:37:57 +0000 |
commit | f4d4a6ab60960385b99fd43d8e1d0213bdf1aec3 (patch) | |
tree | a17522b121489fe8c52c40bd03f1ede2ccfcf8ab /apps/recorder | |
parent | 6fd40a57b81484a57f1c5a8ddbd48855a89e660f (diff) | |
download | rockbox-f4d4a6ab60960385b99fd43d8e1d0213bdf1aec3.tar.gz rockbox-f4d4a6ab60960385b99fd43d8e1d0213bdf1aec3.zip |
Implement FS#8947 - Add a stub in the simulator for ata_disk_is_active. This make it possible to clean up some #ifdef SIMULATOR macros.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17927 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/peakmeter.c | 2 | ||||
-rw-r--r-- | apps/recorder/recording.c | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c index 29be704f0c..fc7c9bc5f5 100644 --- a/apps/recorder/peakmeter.c +++ b/apps/recorder/peakmeter.c | |||
@@ -1335,7 +1335,7 @@ int peak_meter_draw_get_btn(int action_context, int x, int y[], | |||
1335 | long next_refresh = current_tick; | 1335 | long next_refresh = current_tick; |
1336 | long next_big_refresh = current_tick + HZ / 10; | 1336 | long next_big_refresh = current_tick + HZ / 10; |
1337 | int i; | 1337 | int i; |
1338 | #if (CONFIG_CODEC == SWCODEC) || defined(SIMULATOR) | 1338 | #if (CONFIG_CODEC == SWCODEC) |
1339 | bool highperf = false; | 1339 | bool highperf = false; |
1340 | #else | 1340 | #else |
1341 | /* On MAS targets, we need to poll as often as possible in order to not | 1341 | /* On MAS targets, we need to poll as often as possible in order to not |
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index de4a2e6805..4afa87e5b6 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -292,11 +292,7 @@ static bool read_peak_levels(int *peak_l, int *peak_r, int *balance) | |||
292 | peak_valid_mem[peak_time % 3] = *peak_l; | 292 | peak_valid_mem[peak_time % 3] = *peak_l; |
293 | if (((peak_valid_mem[0] == peak_valid_mem[1]) && | 293 | if (((peak_valid_mem[0] == peak_valid_mem[1]) && |
294 | (peak_valid_mem[1] == peak_valid_mem[2])) && | 294 | (peak_valid_mem[1] == peak_valid_mem[2])) && |
295 | ((*peak_l < 32767) | 295 | ((*peak_l < 32767) || ata_disk_is_active())) |
296 | #ifndef SIMULATOR | ||
297 | || ata_disk_is_active() | ||
298 | #endif | ||
299 | )) | ||
300 | return false; | 296 | return false; |
301 | 297 | ||
302 | if (*peak_r > *peak_l) | 298 | if (*peak_r > *peak_l) |