summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2006-02-23 21:42:53 +0000
committerDan Everton <dan@iocaine.org>2006-02-23 21:42:53 +0000
commit581b0f1d437ee90952e199cd602e2d1ea76e9555 (patch)
tree6d74d3e5a8bef1ed7e78d6359ef38371f29c9e43 /uisimulator
parentb1c5676927a4122bc4666205559ce80be679a7ea (diff)
downloadrockbox-581b0f1d437ee90952e199cd602e2d1ea76e9555.tar.gz
rockbox-581b0f1d437ee90952e199cd602e2d1ea76e9555.tar.bz2
rockbox-581b0f1d437ee90952e199cd602e2d1ea76e9555.zip
Remove two unused variables and fix a warning in the sim peak meter function.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8818 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/sound.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/uisimulator/sdl/sound.c b/uisimulator/sdl/sound.c
index ae9d5f9053..d23bcc8094 100644
--- a/uisimulator/sdl/sound.c
+++ b/uisimulator/sdl/sound.c
@@ -157,8 +157,8 @@ bool pcm_is_playing(void)
void pcm_calculate_peaks(int *left, int *right)
{
- long samples = pcm_data_size / 4;
- short *addr = pcm_data;
+ long samples = (long) pcm_data_size / 4;
+ short *addr = (short *) pcm_data;
if (samples > PEAK_SAMPLES)
samples = PEAK_SAMPLES;
@@ -207,9 +207,6 @@ void pcm_calculate_peaks(int *left, int *right)
}
}
-Uint8 overflow[8192];
-Uint32 overflow_amount = 0;
-
void sdl_audio_callback(void *udata, Uint8 *stream, int len)
{
Uint32 pcm_data_played, need_to_play;