summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-12-09 21:14:59 -0500
committerSolomon Peachy <pizza@shaftnet.org>2024-12-09 21:15:53 -0500
commitd483281fea0f8ebe8bc3a81424ac3ecaef4024b5 (patch)
tree2ff926bdeeba2097acc88e7173b8ec820fa84363
parent65d94ecd08c12c033d150a3ae11750317c2d6ef1 (diff)
downloadrockbox-d483281fea.tar.gz
rockbox-d483281fea.zip
SDL: Allow SDL_OpenAudioDevice() to override sample count
Change-Id: I4de40a2a168b98e6cc783e4a636903fd88028af4
-rw-r--r--firmware/target/hosted/sdl/pcm-sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/sdl/pcm-sdl.c b/firmware/target/hosted/sdl/pcm-sdl.c
index 93f2361202..efe78403a8 100644
--- a/firmware/target/hosted/sdl/pcm-sdl.c
+++ b/firmware/target/hosted/sdl/pcm-sdl.c
@@ -104,7 +104,7 @@ static void pcm_dma_apply_settings_nolock(void)
if (pcm_devid)
SDL_CloseAudioDevice(pcm_devid);
/* Open the audio device and start playing sound! */
- if((pcm_devid = SDL_OpenAudioDevice(audiodev, 0, &wanted_spec, &obtained, 0)) == 0) {
+ if((pcm_devid = SDL_OpenAudioDevice(audiodev, 0, &wanted_spec, &obtained, SDL_AUDIO_ALLOW_SAMPLES_CHANGE)) == 0) {
panicf("Unable to open audio: %s\n", SDL_GetError());
return;
}