1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/plugins/sdl/src/audio
Franklin Wei 4554b90859 sdl: fix two bugs in ROCKBOXAUD_PlayAudio()
First was an off-by-one bug in the loop over buffers. The condition was
`i < this->hidden->n_buffers', but should have been <=, not <. This wasn't
a critical issue, because the last iteration would check the currently
playing buffer - an unlikely situation.

The second logic bug would make the code always think it had found an empty
buffer, even when it had not, since `idx' was being unconditionally set
every loop, rendering it unusable for a sentinel value. Fix that.

Change-Id: I137330965d699acf827e59b6aa5c5f9ddf2ca617
2023-05-17 13:23:14 -04:00
..
dummy
rockbox sdl: fix two bugs in ROCKBOXAUD_PlayAudio() 2023-05-17 13:23:14 -04:00
SDL_audio.c Quake! 2019-07-19 22:37:40 -04:00
SDL_audio_c.h
SDL_audiocvt.c
SDL_audiodev.c
SDL_audiodev_c.h
SDL_audiomem.h
SDL_mixer.c
SDL_mixer_m68k.c
SDL_mixer_m68k.h
SDL_mixer_MMX.c
SDL_mixer_MMX.h
SDL_mixer_MMX_VC.c
SDL_mixer_MMX_VC.h
SDL_sysaudio.h
SDL_wave.c SDL: Silence a large number of compile warnings (WIP) 2020-04-11 19:29:47 +02:00
SDL_wave.h