• 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: Callbacks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Callbacks?


  • Subject: Re: Callbacks?
  • From: William Stewart <email@hidden>
  • Date: Tue, 29 Nov 2005 11:37:00 -0800

Ok... have a look at the PlayFile example in the "Simple" examples directory of the latest SDK - that should do what you need I think (You could cancel playback of an existing file simply by calling AudioUnitReset on the FilePlayer AU in that example).

Bill

On 28/11/2005, at 8:17 PM, Paul Fredlein wrote:

Hi Bill,

They aren't sound effects but spoken word, each snippet may be from 2 seconds to as long as 6 seconds. There can be up to 20 of them which need to be play sequentially. I would need to be able to cancel playback whenever possible even in the middle of one.

Thanks,

Paul

On 29/11/2005, at 12:56 PM, William Stewart wrote:

If these are sound effect types of sounds (like for instance the "New Mail" sound, or "Empty Trash" sound) then the API in SystemSound.h would be ideal for this.

Bill

On 27/11/2005, at 4:42 PM, Paul Fredlein wrote:

Hi,

I have many, up to 20, small audio snippets that are loaded into memory and need to be played one after another and so that the user interface remains responsive I assume I will need some kind of callback mechanism to play the next snippet after the previous one has finished playing. Is there any simple sample code in Cocoa (or perhaps Carbon) which would help?

I was playing them synchronously from within a loop in Carbon but that's probably not the way to do it.

Thanks,

Paul

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com


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

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


References: 
 >Callbacks? (From: Paul Fredlein <email@hidden>)
 >Re: Callbacks? (From: William Stewart <email@hidden>)
 >Re: Callbacks? (From: Paul Fredlein <email@hidden>)

  • Prev by Date: Re: Garageband Where To Ask
  • Next by Date: Re: AudioUnit: channel layout
  • Previous by thread: Re: Callbacks?
  • Next by thread: AUTimePitch -- edge artifacts
  • Index(es):
    • Date
    • Thread