• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: limitation of AudioUnitAddRenderNotify?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: limitation of AudioUnitAddRenderNotify?


  • Subject: Re: limitation of AudioUnitAddRenderNotify?
  • From: William Stewart <email@hidden>
  • Date: Fri, 23 Jan 2009 15:03:48 -0800


On Jan 23, 2009, at 2:47 PM, MF wrote:

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)

you should specify something for the client data (in C++ we use the this pointer for example)


This error code is 0x80008001 which is badComponentInstance from the component manager - so mixerUnit is wrong




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

_______________________________________________ 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
References: 
 >limitation of AudioUnitAddRenderNotify? (From: MF <email@hidden>)

  • Prev by Date: limitation of AudioUnitAddRenderNotify?
  • Next by Date: Re: AudioQueueOfflineRender: how do I know when I'm done?
  • Previous by thread: limitation of AudioUnitAddRenderNotify?
  • Next by thread: Determining Pitch from Microphone
  • Index(es):
    • Date
    • Thread