• 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: Streaming the mp3 and Playing.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Streaming the mp3 and Playing. (From: "Mathan" <email@hidden>)

  • Prev by Date: Streaming the mp3 and Playing.
  • Next by Date: Re: Logic key command oddness with AU
  • Previous by thread: Streaming the mp3 and Playing.
  • Next by thread: Re: Streaming the mp3 and Playing.
  • Index(es):
    • Date
    • Thread