On Jan 31, 2010, at 12:56 PM, Chunk 1978 wrote:

> can you refer to me to samples or appropriate documentation so that i
> can learn how to accomplish this?  i'm thinking it would be ideal to
> supply my code with a file size limit, so that if a particular sound
> file is larger than to only play that file in stages.

Apple has a lot of CoreAudio sample code in /Developer/Examples/CoreAudio/. 
It's almost all C++. It can be difficult to follow (and the docs don't help 
much.) I don't want to discourage you, but audio is tricky stuff, and if you 
want to get into CoreAudio programming you need to be prepared to beat your 
head against it for a while.

If you want to read audio out of a file and play it, with more control than 
NSSound gives you, I suggest using the AudioQueue API. The nice thing about it 
is that it uses callbacks running on the main thread, which is easier than 
having to write code that runs on the high-priority CoreAudio HAL thread.

Also, CoreAudio discussion belongs on the coreaudio-api list, not cocoa-dev. I 
don't think any of the Apple audio gurus even read cocoa-dev.

—Jens_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to