Play audio buffer with AEBlockAudioReceiver

edited June 2013

Hello,

I am very new to audio programming, so new that I'm not sure what to do with an audio buffer to get it playing. I've got this simple sample code that generates sound:

static void play_siren( long count, short* out )
{
    static double a, a2;
    while ( count-- )
        *out++ = 0x2000 * sin( a += .1 + .05*sin( a2+=.00005 ) );
}

Is there an easy way to play the samples in the *out buffer with AEBlockAudioReceiver?

Sign In or Register to comment.