limitation of AudioUnitAddRenderNotify?
limitation of AudioUnitAddRenderNotify?
- Subject: limitation of AudioUnitAddRenderNotify?
- From: MF <email@hidden>
- Date: Fri, 23 Jan 2009 23:47:49 +0100
Hello everybody,
I tried to set up render notification for the inputs of a stereo
mixer, its audio input comes from audio file player units, the
chaining looks like this:
audio file players -> mixer-> output unit
I would like to schedule volume events in the pre render notification
call. However, I always get an error message -2147450879 as I added
the render notification to stereo mixer unit.
AudioUnitAddRenderNotify (mixerUnit, AudioEngine::MyRenderNotification, 0)
I also tried it with the other units in my graph... such as output
unit and effect units. It only works with the audio file player units
( the others get -2147450879 error message...). Do I actually use
'AudioUnitAddRenderNotify' in a wrong way? such as I can only use it
in a specific thread, a specific kind of Audio unit, or do I have to
firstly set up a render call back function for the target unit? I
didn't set it for the stereo mixer because it's inputs are from the
scheduled region of the audio file players...
besides, the call back function for the file player unit seems to be
called constantly while I expected it to be only called before and
after the display of a scheduled audio region (pre and post
notifications)... is it an expected exception for audio file player?
any suggestion or comment would be greatly appreciated!
MF
_______________________________________________
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