• 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: Best way to play a MP3?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to play a MP3?


  • Subject: Re: Best way to play a MP3?
  • From: "Stephen F. Booth" <email@hidden>
  • Date: Tue, 5 Jun 2007 23:15:25 -0700

What's the best/official way to play a MP3? QTKit?

That depends on what your needs are. Do you need audio-player like functionality (with play/pause/seek support), or do you simply need to play the file from start to finish? I would take a look at / Developer/Examples/CoreAudio/SimpleSDK/PlayFile/PlayFile.cpp for the simplest way to do this using Core Audio. It's not specific to Cocoa, obviously, but the gist is you create a simple AUGraph with an AudioFilePlayer as a generator linked to the default output unit. Playback is then as simple as opening an AudioFile and setting a few properties on the AudioFilePlayer.


Stephen

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Prev by Date: Re: Recursion taking up far too much memory... any ideas?
  • Next by Date: Re: How to use bindings on a specific array element
  • Previous by thread: Re: Best way to play a MP3?
  • Next by thread: Re: Best way to play a MP3?
  • Index(es):
    • Date
    • Thread