Search code examples
c++macososx-lionosx-snow-leopardcore-audio

can you make a call to AudioObjectSetPropertyData be synchronous?


I am setting the samplerate of a device using AudioObjectSetPropertyData.

Is there a way to make this call be synchronous?


Solution

  • Unlikely, as inserting or changing a sample rate converter in a running sample stream can cause serious glitches. One possible solution is to run your own sample rate converters in parallel and switch between the converters at your desired sample time. A cross-fade may be required in some cases.