Re: Streaming using coreaudio
Re: Streaming using coreaudio
- Subject: Re: Streaming using coreaudio
- From: "Hamish Allan" <email@hidden>
- Date: Tue, 13 Jan 2009 20:16:44 +0000
On Tue, Jan 13, 2009 at 6:17 PM, John Michael Zorko <email@hidden> wrote:
> 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),
If you don't consume the data it provides you, more will keep building
up; but I've never found this a problem for streaming audio.
> and it calls
> the didReceiveData() delegate method on its' own thread,
>From the NSURLConnection docs, apropos of -connection:didReceiveData: et al:
"Note that these delegate methods will be called on the thread that
started the asynchronous load operation for the associated
NSURLConnection object."
> which can
> complicate other matters (esp. with Core Audio and its' streaming services
> API).
You can also arrange for Core Audio to deliver callbacks on any given
thread/runloop.
Best wishes,
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