1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/plugins/sdl/src
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
..
audio
cdrom
cpuinfo
events
file
joystick
loadso/dummy
main/dummy
stdlib
thread
timer
video
SDL.c
SDL_error.c
SDL_error_c.h
SDL_fatal.c
SDL_fatal.h