Re: Simple SDK Examples (PlayFile)
Re: Simple SDK Examples (PlayFile)
- Subject: Re: Simple SDK Examples (PlayFile)
- From: Doug Wyatt <email@hidden>
- Date: Tue, 13 Jun 2006 11:14:09 -0700
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