diff options
Diffstat (limited to 'uisimulator/sdl')
-rw-r--r-- | uisimulator/sdl/sound.c | 7 |
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) | |||
157 | 157 | ||
158 | void pcm_calculate_peaks(int *left, int *right) | 158 | void pcm_calculate_peaks(int *left, int *right) |
159 | { | 159 | { |
160 | long samples = pcm_data_size / 4; | 160 | long samples = (long) pcm_data_size / 4; |
161 | short *addr = pcm_data; | 161 | short *addr = (short *) pcm_data; |
162 | 162 | ||
163 | if (samples > PEAK_SAMPLES) | 163 | if (samples > PEAK_SAMPLES) |
164 | samples = PEAK_SAMPLES; | 164 | samples = PEAK_SAMPLES; |
@@ -207,9 +207,6 @@ void pcm_calculate_peaks(int *left, int *right) | |||
207 | } | 207 | } |
208 | } | 208 | } |
209 | 209 | ||
210 | Uint8 overflow[8192]; | ||
211 | Uint32 overflow_amount = 0; | ||
212 | |||
213 | void sdl_audio_callback(void *udata, Uint8 *stream, int len) | 210 | void sdl_audio_callback(void *udata, Uint8 *stream, int len) |
214 | { | 211 | { |
215 | Uint32 pcm_data_played, need_to_play; | 212 | Uint32 pcm_data_played, need_to_play; |