• 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: stop a sound file after playing once?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stop a sound file after playing once?


  • Subject: Re: stop a sound file after playing once?
  • From: Bob Sabiston <email@hidden>
  • Date: Tue, 26 Jul 2011 14:40:28 -0500

On Jul 26, 2011, at 1:52 PM, Brian Willoughby wrote:

>
> 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


My sounds are not in stereo.  I am not sure about the mixer output -- so if the sound is mono and the output is stereo, you have to double the number of samples read in from the file? That doesn't make sense to me.

Bob


 _______________________________________________
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: 
 >stop a sound file after playing once? (From: Bob Sabiston <email@hidden>)
 >Re: stop a sound file after playing once? (From: Aran Mulholland <email@hidden>)
 >Re: stop a sound file after playing once? (From: Bob Sabiston <email@hidden>)
 >Re: stop a sound file after playing once? (From: Gregory Wieber <email@hidden>)
 >Re: stop a sound file after playing once? (From: Bob Sabiston <email@hidden>)
 >Re: stop a sound file after playing once? (From: Gregory Wieber <email@hidden>)
 >Re: stop a sound file after playing once? (From: Aran Mulholland <email@hidden>)
 >Re: stop a sound file after playing once? (From: Bob Sabiston <email@hidden>)
 >Re: stop a sound file after playing once? (From: Hamilton Feltman <email@hidden>)
 >Re: stop a sound file after playing once? (From: Bob Sabiston <email@hidden>)
 >Re: stop a sound file after playing once? (From: Brian Willoughby <email@hidden>)

  • Prev by Date: Re: stop a sound file after playing once?
  • Next by Date: Questions about ConvertFile Sample Code
  • Previous by thread: Re: stop a sound file after playing once?
  • Next by thread: Lion changes to audio processing
  • Index(es):
    • Date
    • Thread