forked from len0rd/rockbox
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
This commit is contained in:
parent
b1c5676927
commit
581b0f1d43
1 changed files with 2 additions and 5 deletions
|
|
@ -157,8 +157,8 @@ bool pcm_is_playing(void)
|
||||||
|
|
||||||
void pcm_calculate_peaks(int *left, int *right)
|
void pcm_calculate_peaks(int *left, int *right)
|
||||||
{
|
{
|
||||||
long samples = pcm_data_size / 4;
|
long samples = (long) pcm_data_size / 4;
|
||||||
short *addr = pcm_data;
|
short *addr = (short *) pcm_data;
|
||||||
|
|
||||||
if (samples > PEAK_SAMPLES)
|
if (samples > PEAK_SAMPLES)
|
||||||
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)
|
void sdl_audio_callback(void *udata, Uint8 *stream, int len)
|
||||||
{
|
{
|
||||||
Uint32 pcm_data_played, need_to_play;
|
Uint32 pcm_data_played, need_to_play;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue