Example of using Audio Queue Services
I am seeking an example of using Audio Queue Services. I would like to create a sound using a mathematical equation and then hear it. Here's my code for generating sound from a function. I'm assuming you know how to use AudioQueue services, set up an AudioSession, and properly start and stop an audio output queue. Here's a snippet for setting up and starting an output AudioQueue: // Get the preferred sample rate (8,000 Hz on iPhone, 44,100 Hz on iPod touch) size = sizeof(sampleRate); err = AudioSessionGetProperty (kAudioSessionProperty_CurrentHardwareSampleRate, &size, &sampleRate); if (err !=