rockbox/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 sdl: fix two bugs in ROCKBOXAUD_PlayAudio() 2023-05-17 13:23:14 -04:00
cdrom sdl: remove non-rockbox drivers 2018-03-12 20:52:01 -04:00
cpuinfo Port of Duke Nukem 3D 2017-12-23 21:01:26 -05:00
events Port of Duke Nukem 3D 2017-12-23 21:01:26 -05:00
file Port of Duke Nukem 3D 2017-12-23 21:01:26 -05:00
joystick sdl: remove non-rockbox drivers 2018-03-12 20:52:01 -04:00
loadso/dummy sdl: remove non-rockbox drivers 2018-03-12 20:52:01 -04:00
main/dummy sdl: remove non-rockbox drivers 2018-03-12 20:52:01 -04:00
stdlib sdl: Remove platform-specific code 2019-07-29 01:59:40 +03:00
thread sdl: increase default worker thread size. 2021-06-28 02:51:48 +00:00
timer Quake! 2019-07-19 22:37:40 -04:00
video LCD core move buf ptr and address look up function viewport struct 2020-10-26 12:28:48 -04:00
SDL.c sdl: gut OS/2, win32 code from SDL.c 2019-07-28 14:27:49 -04:00
SDL_error.c Port of Duke Nukem 3D 2017-12-23 21:01:26 -05:00
SDL_error_c.h Port of Duke Nukem 3D 2017-12-23 21:01:26 -05:00
SDL_fatal.c Port of Duke Nukem 3D 2017-12-23 21:01:26 -05:00
SDL_fatal.h Port of Duke Nukem 3D 2017-12-23 21:01:26 -05:00