Re: Simple SDK Examples (PlayFile)
Re: Simple SDK Examples (PlayFile)
- Subject: Re: Simple SDK Examples (PlayFile)
- From: William Stewart <email@hidden>
- Date: Tue, 13 Jun 2006 11:34:50 -0700
Also, you don't have to initialise an AU after you reset it. The
reset call is intended to generally enable a host to tell an AU to
throw away rendering state (for example, the tail of a reverb)
because its going to start rendering from a fresh place or you
unmuted a track, etc... We overload this general usage of the reset
call to reset the file playing/scheduled slice handling of these
particular units.
Bill
On 13/06/2006, at 11:14 AM, Doug Wyatt wrote:
On Jun 13, 2006, at 05:24 , Bruno Degazio wrote:
Thanks to everyone who responded to my queries. I've now got
PlayFile.cpp translated to FORTH and running more or less reliably.
Another question : what is the preferred method for pausing/
resuming playback of an AU? I've been using AUGraphStart and
AUGraphStop but Doug Wyatt's example code in previous postings
seem to imply that its better to use AudioUnitReset. But that
requires re-initialzing the AU to resume playback, and the CPU
load continues even though the AU is producing no sound.
AUGraphStop can stop the hardware which indeed will reduce the CPU
load. But it can also take a bit longer to restart the hardware
afterwards; that's the tradeoff. Also with AUAudioFilePlayer,
there's an opportunity for some artifacts if you just stop and
restart the graph. If you're going to stop the graph, I'd recommend
resetting the file player after stopping the graph.
Doug
--
Doug Wyatt
Core Audio, Apple
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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