diff options
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/peakmeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c index c7e351f898..ccf652a537 100644 --- a/apps/recorder/peakmeter.c +++ b/apps/recorder/peakmeter.c | |||
@@ -802,7 +802,7 @@ static int peak_meter_read_l(void) | |||
802 | get fooled by an old maximum value */ | 802 | get fooled by an old maximum value */ |
803 | pm_max_left = pm_cur_left; | 803 | pm_max_left = pm_cur_left; |
804 | 804 | ||
805 | #ifdef SIMULATOR | 805 | #if defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) |
806 | srand(current_tick); | 806 | srand(current_tick); |
807 | retval = rand()%MAX_PEAK; | 807 | retval = rand()%MAX_PEAK; |
808 | #endif | 808 | #endif |
@@ -833,7 +833,7 @@ static int peak_meter_read_r(void) | |||
833 | get fooled by an old maximum value */ | 833 | get fooled by an old maximum value */ |
834 | pm_max_right = pm_cur_right; | 834 | pm_max_right = pm_cur_right; |
835 | 835 | ||
836 | #ifdef SIMULATOR | 836 | #if defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) |
837 | srand(current_tick); | 837 | srand(current_tick); |
838 | retval = rand()%MAX_PEAK; | 838 | retval = rand()%MAX_PEAK; |
839 | #endif | 839 | #endif |