• 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: Thu, 21 Jul 2011 18:03:44 -0500


On Jul 21, 2011, at 4:18 PM, Aran Mulholland wrote:

From what I understand you are copying samples into a buffer from
memory. You obviously know which samples you are copying (because you
are copying them), so what would stop you, once you have copied all
the samples for a "one-shot", simply not copying any more? Once you
have played through all the samples in your sound file fill the buffer
with 0's instead of copying samples from the start of it again.

Yes I was going to try that, but if I'm not actively playing a sound effect, isn't that wasteful of processing power to be calling this empty bus?  Wouldn't I want to actually disable the bus until I wanted to play a sound effect, and turn it off afterward?  Surely this is a common thing to need to do -- what do most people here do?  I am sorry for the newbish question.

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

  • Follow-Ups:
    • Re: stop a sound file after playing once?
      • From: Gregory Wieber <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>)

  • Prev by Date: Re: Intermixing AudioServices and CoreAudio?
  • Next by Date: Re: stop a sound file after playing once?
  • Previous by thread: Re: stop a sound file after playing once?
  • Next by thread: Re: stop a sound file after playing once?
  • Index(es):
    • Date
    • Thread