Open
Description
Function COREAUDIO_OpenDevice has following code:
AVAudioSession *session = [AVAudioSession sharedInstance];
[session setPreferredSampleRate:this->spec.freq error:nil];
this->spec.freq = (int)session.sampleRate;
It has several problems:
- Does not check if it was successful so you don't know if sample rate was changed
- Will fail to 48000 Hz in many cases
Is it possible to put this code under #if
guard? Now if I use SDL_OpenAudio
with sample rate 44100 Hz then I get 48000 Hz on my iPhone. If I remove that setPreferredSampleRate
call then it works and I get 44100 Hz.
Metadata
Metadata
Assignees
Labels
No labels