render callback - silence
render callback - silence
- Subject: render callback - silence
- From: Mike Hanna <email@hidden>
- Date: Sat, 3 Feb 2007 10:59:18 -0800
Hi, I have set up a render callback as such:
OSStatus renderErr = noErr;
AURenderCallbackStruct input;
input.inputProc = MyRendererCallback;
input.inputProcRefCon = NULL;
renderErr = AudioUnitSetProperty (m_outputAU,
kAudioUnitProperty_SetRenderCallback,
kAudioUnitScope_Input,
0,
&input,
sizeof(input));
if (renderErr) { printf ("AudioUnitSetProperty-CB=%ld\n",
renderErr); };
callback:
OSStatus MyRendererCallback(void *inRefCon,
AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
UInt32 inNumberFrames,
AudioBufferList *ioData)
{
printf("MyRendererCallback\n");
return noErr;
}
it is called, but there is no audio playback. When I remove the
callback, I have audio playback and my render notification callback
is also called.
What do I need to do in this render callback if I simply want
playback? It's hard to find this in the documentation. m_outputAU is
at the end of an AUGraph: m_outputAU <> m_timepitchAU <> m_fileAU
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden