Fwd: AUGraphSetNodeInputCallback alternative on 10.4
Fwd: AUGraphSetNodeInputCallback alternative on 10.4
- Subject: Fwd: AUGraphSetNodeInputCallback alternative on 10.4
- From: David Preece <email@hidden>
- Date: Fri, 15 May 2009 09:57:55 +1200
Answering my own question...
Begin forwarded message:
The real sticking point is feeding the AU graph with data from my
code, previously achieved with a call to AUGraphSetNodeInputCallback
and callback. This is not implemented on 10.4.
It's a property on the audio unit.
AURenderCallbackStruct cs={renderCallback,refCon};
AudioUnitSetProperty
(unit,kAudioUnitProperty_SetRenderCallback,kAudioUnitScope_Input,0,
&callbackStruct,sizeof(AURenderCallbackStruct));
works with a callback that looks like this:
OSStatus renderCallback(void *inRefCon,
AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
UInt32 inNumberFrames,
AudioBufferList *ioData) {}
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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