Re: AudioFileOpenURL
Re: AudioFileOpenURL
- Subject: Re: AudioFileOpenURL
- From: Jens Alfke <email@hidden>
- Date: Wed, 1 Apr 2009 13:16:47 -0700
On Apr 1, 2009, at 10:52 AM, james mccartney wrote:
On Apr 1, 2009, at 10:25 AM, Ashley Allen wrote:
If I place the URL I am trying to access in my web browser
AudioFileOpenURL only opens a URL of a file on a local disk, not the
web.
Look at the AudioFileStream API if you want to play audio from the
web. Actually you'll need a series of building blocks:
NSURLConnection (or CFStream) ---> AudioFileStream ---> AudioQueue
A much simpler way is to use QTKit — you can open a QTMovie on an
'http:' URL with a couple of lines of code, and it will download and
play the audio. The drawback is that all you can do is play; you don't
get access to the samples.
—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