Re: Best way to play a MP3?
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