• 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 using coreaudio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Streaming using coreaudio


  • Subject: Re: Streaming using coreaudio
  • From: John Michael Zorko <email@hidden>
  • Date: Tue, 13 Jan 2009 10:17:48 -0800


Christopher,


I highly recommend to look at this example:
http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html

... yeah, that one, too :-)  The only thing about that is that I think it's more complicated and resource hungry than it needs to be, since NSURLConnection is used to do the streaming.  NSURLConncetion is a fine class and all, very easy to use and a truly upstanding citizen in the Cocoa world, but it's not the best choice for downloading data when you don't know how large the data is (so it ends up using a lot more memory), and it calls the didReceiveData() delegate method on its' own thread, which can complicate other matters (esp. with Core Audio and its' streaming services API).  I ended up removing that in my code and using CFReadStream() and friends instead, which gives me a lot more control over the networking aspect and ended up making my code much simpler.

Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com


 _______________________________________________
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

  • Follow-Ups:
    • Re: Streaming using coreaudio
      • From: "Hamish Allan" <email@hidden>
    • Re: Streaming using coreaudio
      • From: Christopher Atlan <email@hidden>
    • Re: Streaming using coreaudio
      • From: Neil Mix <email@hidden>
References: 
 >Streaming using coreaudio (From: "Arnab Ganguly" <email@hidden>)
 >Re: Streaming using coreaudio (From: John Michael Zorko <email@hidden>)
 >Re: Streaming using coreaudio (From: Christopher Atlan <email@hidden>)

  • Prev by Date: Re: Streaming using coreaudio
  • Next by Date: Re: Streaming using coreaudio
  • Previous by thread: Re: Streaming using coreaudio
  • Next by thread: Re: Streaming using coreaudio
  • Index(es):
    • Date
    • Thread