Re: stop a sound file after playing once?
Re: stop a sound file after playing once?
- Subject: Re: stop a sound file after playing once?
- From: Brian Willoughby <email@hidden>
- Date: Tue, 26 Jul 2011 11:52:59 -0700
On Jul 26, 2011, at 11:13, Bob Sabiston wrote:
On Jul 26, 2011, at 12:55 AM, Hamilton Feltman wrote:
You modify the ioActionFlags in the callback if you know the data
is all zeros:
ioActionFlags |= kAudioUnitRenderAction_OutputIsSilence;
Presumably the driver can do some optimizations if you hint at it.
Yes, I am doing that now. Everything seems to work, except that I
don't know why I have to multiply the number of samples by 2 to get
it to play the whole sound.
Because you're playing in stereo?
Brian Willoughby
Sound Consulting
_______________________________________________
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