Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / November 2005



Tip: Looking for answers? Try searching our database.

Cocoa callbacks?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pf - 28 Nov 2005 04:54 GMT
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
l0ne (on mac) - 28 Nov 2005 06:09 GMT
> I will need some kind of callback mechanism
> to play the next snippet after the previous one has finished playing

You will have to provide a delegate object. See NSSound for help.

- ∞
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.