Re: Streaming using coreaudio
Re: Streaming using coreaudio
- Subject: Re: Streaming using coreaudio
- From: "Hamish Allan" <email@hidden>
- Date: Wed, 14 Jan 2009 17:33:19 +0000
On Wed, Jan 14, 2009 at 4:14 PM, John Michael Zorko <email@hidden> wrote:
> Of course not. As an example, the server could deliver 2 megabytes in just
> a few seconds, yet that 2 megabytes might represent 2 minutes or more of MP3
> audio. If I only have a few audio buffers to hold the audio i'm going to
> decode and play, I don't want what's left of that 2 megabytes consuming
> memory.
I see. I've never come across an audio streaming server for which an
expected content length of less than zero meant anything other than
live or continuous audio, so I've never had one serve me data at a
rate greater than playback.
> I also don't see why this is a big deal -- CFReadStream works better for
> this app that NSURLConnection did. It's certainly nothing against
> NSURLConnection, really. CFReadStream allows me to read what I want, as
> much (or as little) as I want, when I want, and because I control the amount
> of data I read, i'm more in control of memory usage, and that works better
> in my audio streaming app on the iPhone.
It's no big deal -- I'm just wondering what I'm missing. If the
assumption behind my experience as described above is incorrect, I'd
like to know about it!
Thanks,
Hamish
_______________________________________________
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