summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-09-09 09:07:22 +0000
committerJens Arnold <amiconn@rockbox.org>2007-09-09 09:07:22 +0000
commit945462edefe817d4137476ca941a83df5c56f91f (patch)
tree36a13903d2cd20ac214e6050c656410d40512243
parent3a45faa6a8b12cd7a798f488c2fc9bc60327f5cd (diff)
downloadrockbox-945462edefe817d4137476ca941a83df5c56f91f.tar.gz
rockbox-945462edefe817d4137476ca941a83df5c56f91f.zip
Make peakmeters work for real in swcodec simulators instead of just showing random movement.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14650 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/peakmeter.c4
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)
get fooled by an old maximum value */
pm_max_left = pm_cur_left;
-#ifdef SIMULATOR
+#if defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
srand(current_tick);
retval = rand()%MAX_PEAK;
#endif
@@ -833,7 +833,7 @@ static int peak_meter_read_r(void)
get fooled by an old maximum value */
pm_max_right = pm_cur_right;
-#ifdef SIMULATOR
+#if defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
srand(current_tick);
retval = rand()%MAX_PEAK;
#endif