• 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
Audio progressive download
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Audio progressive download


  • Subject: Audio progressive download
  • From: Fernando Valente <email@hidden>
  • Date: Sat, 7 Aug 2010 09:03:52 -0300

I'm using Matt Gallagher's audio streamer on my radio app. How may I do progressive download?

Tried  this:
length = CFReadStreamRead(stream, bytes, kAQDefaultBufSize);            
if(!data)
    data
=[[NSMutableData alloc] initWithLength:0];            
[data appendData:[NSData dataWithBytes:bytes length:kAQDefaultBufSize]];

Now I can save the audio data using writeToFile:atomically: NSData method, but the audio won't play. Also, if I try to load it on a AVAudioPlayer, I get an error.


Fernando Valente
Chiaro Software
email@hidden
http://www.chiarosoft.com
http://www.twitter.com/chiarosoftware

 _______________________________________________
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: Audio progressive download
      • From: "Stephen F. Booth" <email@hidden>
  • Prev by Date: iOS4: after interruption, AudioQueueStart() while in background returns -12985
  • Next by Date: Re: Audio progressive download
  • Previous by thread: iOS4: after interruption, AudioQueueStart() while in background returns -12985
  • Next by thread: Re: Audio progressive download
  • Index(es):
    • Date
    • Thread