I implemented an AUGraph similar to the one found in the iOS Developer Library . However, in my application, I need to be able to reproduce sound with different sampling frequencies (possibly two different).
I was looking through Apple documentation and could not find a way to set the sample rate at runtime. I was thinking of three possible workarounds:
- Re-initialize the AUGraph every time I need to change the sampling rate,
- Initialize a different AUGraph for each different sample rate;
- Convert the sampling frequency of each sound before playback;
These methods seem really awkward and cumbersome for the processor.
What is the best way to change the AUGraph sample rate at runtime?
source
share