Last active
January 3, 2016 11:29
-
-
Save enigmaticape/8456297 to your computer and use it in GitHub Desktop.
Rendering callback using more general code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OSStatus RenderToneWithState | |
( | |
void *inRefCon, | |
AudioUnitRenderActionFlags *ioActionFlags, | |
const AudioTimeStamp *inTimeStamp, | |
UInt32 inBusNumber, | |
UInt32 inNumberFrames, | |
AudioBufferList *ioData | |
) | |
{ | |
fillWaveSamples( (WaveState*)inRefCon, | |
inNumberFrames, | |
(Float32 *)ioData->mBuffers[ 0 ].mData ); | |
return noErr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment