Re: Streaming the mp3 and Playing.
Re: Streaming the mp3 and Playing.
- Subject: Re: Streaming the mp3 and Playing.
- From: Jens Alfke <email@hidden>
- Date: Thu, 17 Jul 2008 22:21:54 -0700
On 17 Jul '08, at 9:37 PM, Mathan wrote: I want to stream a mp3 file and play it. can anyone suggest, whats the logic for?
By "stream" do you mean receiving the file from the network while playing it? To do that you'll want to use the AudioFileStream API too, to decode the incoming file bytes into packets of samples. You then feed those into AudioQueue.
I am thinking aout using AudioQueueNewInput() and Playing the file AudioQueueStart().
For playback you want AudioQueueNewOutput. (Input is for recording.) Check the AudioQueue sample code in /Developer/Examples/CoreAudio/SimpleSDK/.
—Jens |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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