0

I have an application that will need to rapidly change the sample rate of audio.

The pitch shift caused by doing simple linear interpolation of the samples is totally fine.

Is there an audio unit that resamples in software in real time (ie: does not need to change the hardware sample rate).

benstpierre
  • 32,833
  • 51
  • 177
  • 288

1 Answers1

4

Yes, Apple's AU kAudioUnitType_FormatConverter, kAudioUnitSubType_AUConverter can do this. Internally the AU contains a FormatConverter that performs the work.

sbooth
  • 16,646
  • 2
  • 55
  • 81