CoreAudio get output sample rate
问题 I'm creating a Mac OS X CoreAudio command-line program with proprietary rendering of some alphanumeric terminal input into a live audio signal, by means of AudioUnits, trying to stay as simple as possible. All works fine up to matching output sample rate. As a starting point I'm using the Chapter 07 tutorial code of Addisson Wesley's "Learning Core Audio", CH07_AUGraphSineWave. I initialize the AudioComponent "by the book": void CreateAndConnectOutputUnit (MyGenerator *generator) {