• 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: OpenAL and file size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenAL and file size


  • Subject: Re: OpenAL and file size
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 31 Jan 2010 21:51:26 -0800

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@hidden)

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:

This email sent to email@hidden

References: 
 >Re: OpenAL and file size (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Re: updating NSView on separate thread
  • Next by Date: Re: NSXML and invalid UTF8 characters
  • Previous by thread: Re: OpenAL and file size
  • Next by thread: WebView Loading Images from Local Filesystem
  • Index(es):
    • Date
    • Thread