Re: Question about ExtAudioFileOpenURL
Re: Question about ExtAudioFileOpenURL
- Subject: Re: Question about ExtAudioFileOpenURL
- From: Jens Alfke <email@hidden>
- Date: Wed, 4 Mar 2009 08:02:16 -0800
On Mar 4, 2009, at 5:53 AM, Eugen Belyakov wrote:
Can ExtAudioFileOpenURL be used to open remote file (e. g. from http
server)?
Nope, it only works on "file:" URLs. (There are a number of OS X APIs
that use CFURL as a generic representation of a filesystem path, so
this function is for your convenience if you're storing filenames that
way in your app.)
You can use something like NSURLDownload) to download the file and
then open it locally with ExtAudioFile; or you can use NSURLConnection
to stream from the server and pass the data through an AudioFileStream.
—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