• 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: How to stop an Audio Unit from within the render callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to stop an Audio Unit from within the render callback


  • Subject: Re: How to stop an Audio Unit from within the render callback
  • From: Inca Rose <email@hidden>
  • Date: Mon, 12 Jan 2009 23:03:19 +0200

Thanks
It solves my problem.


On Jan 12, 2009, at 6:32 PM, tahome izwah wrote:

Look at -performSelectorOnMainThread in the docs. The Render callback
is executed on another thread so you have to schedule a call to your
-stop on the main thread.

--th

2009/1/12 Inca Rose <email@hidden>:
Hi;

How can I signal the RIO AudioUnit that I finish playing data ?

I have a buffer with audio samples, every time my app get called to the
render callback
I copy some of the data to the AudioBufferList provided in the callback.
When I finish to pass all the data, I want to call the stop method of my RIO
AudioUnit, but
the problem is that it happen while inside the render callback. Calling stop
while in the render callback doesn't work.
How can I do that ?


Thanks
Inca R_______________________________________________

_______________________________________________ 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: 
 >How to stop an Audio Unit from within the render callback (From: Inca Rose <email@hidden>)
 >Re: How to stop an Audio Unit from within the render callback (From: "tahome izwah" <email@hidden>)

  • Prev by Date: Re: Question regarding recording and accounting for drift
  • Next by Date: Pitch shift with Core Audio/RemoteIO on iPhone
  • Previous by thread: Re: How to stop an Audio Unit from within the render callback
  • Next by thread: Newbie question: mono playback to left or right speaker only?
  • Index(es):
    • Date
    • Thread