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

Re: AudioFile APIs


  • Subject: Re: AudioFile APIs
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 20 Oct 2005 13:19:55 -0700


On 20 Oct '05, at 8:40 AM, Jacob Ashcroft wrote:

I've been reading a tutorial on sound (http://www.mactech.com:16080/ articles/mactech/vol.15/15.02/feb99gettingstarted/

If that article's really from Feb 1999, it's way, way out of date! Try this instead:

http://developer.apple.com/referencelibrary/GettingStarted/GS_MusicAudio/index.html

I've tried to read from a sound file and play it using SndStartFiiePlay only to find that it's been deprecated.  The guy on the quicktime list said I should use the AudioFile APIs instead.  What in particular should I do?


Download the CoreAudio SDK from ADC. It installs into /Developer/Examples/CoreAudio/. There are some examples in there that show how to play an audio file using a file-player AudioUnit.

It does take significantly more than one line of code. You could do it in 2 or 3 lines using the higher-level QTKit API, but that's Cocoa, not Carbon. (Is this a new project without a lot of legacy code? Personally, I'd highly recommend using Cocoa instead of Carbon, as the frameworks are much higher-level.)

--Jens
 _______________________________________________
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: 
 >AudioFile APIs (From: "Jacob Ashcroft" <email@hidden>)

  • Prev by Date: Re: Playback hiccups with Quicktime and CoreAudio
  • Next by Date: Re: AudioFile APIs
  • Previous by thread: AudioFile APIs
  • Next by thread: Re: AudioFile APIs
  • Index(es):
    • Date
    • Thread