Post

Replies

Boosts

Views

Activity

Avaudiosourcenode set format
I am using the new AVAudioSourceNode to stream audio samples to be played out of a hardware interface. I can successfully do this, however when inspecting the stream, I can see that the node seems to decide it’s own format. I assumed that this would take the format used in the line: engine.connect(sourceNode, to: mainMixerNode, format: format) However it is not using this. I have tried setting the preferred sampleRate for the audio session to 48000. Everything attached to my audioEngine uses 48000Hz but for some reason the audioSourceNode still seems to use 44100Hz, and set to 2-channel! Any suggestions?
1
0
645
Oct ’19