Setting iPhone sample rate from 48000 to 44100


#1
AudioDeviceManager::AudioDeviceSetup audioSetup;
deviceManager.getAudioDeviceSetup (audioSetup);
LOG ("Sample Rate: %.1f", audioSetup.sampleRate);

On my iPhone 5S, the sample rate is reporting as 44100.
On my iPhoneX it is 48000.

Attempting to set it fails to fix:

AudioDeviceManager::AudioDeviceSetup audioSetup;
setAudioChannels (1, 0);
deviceManager.getAudioDeviceSetup (audioSetup);
audioSetup.sampleRate = 44100.0;
deviceManager.setAudioDeviceSetup (audioSetup, true);

Is it indeed the case that we are at the mercy of the system sampling rate, and must manually resample?


#2

Do you get an error string returned by setAudioDeviceSetup?


#3

No error. Linking to this thread.