mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
SDL: Allow SDL_OpenAudioDevice() to override sample count
Change-Id: I4de40a2a168b98e6cc783e4a636903fd88028af4
This commit is contained in:
parent
65d94ecd08
commit
d483281fea
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue