AudioFileOpenURL
AudioFileOpenURL
- Subject: AudioFileOpenURL
- From: Ashley Allen <email@hidden>
- Date: Wed, 01 Apr 2009 10:25:21 -0700
Hi,
I'm trying to use AudioFileOpenURL and it keeps failing with "fnfErr", file not found error. If I place the URL I am trying to access in my web browser, I can open and play the file with no problem. Any ideas? I was successfully using AudioFileOpen to access local files prior to switching to AudioFIleOpenURL. Needless to say, the files I am trying to access now are hosted on a web server.
Another issue I seem to be running into relates to printing CFURL's. My prints keep returning null values even though XCode debugger shows they have proper values. I am doing the following:
CFShow(CFStringGetCStringPtr(CFURLGetString(sound_uri), kCFStringEncodingUTF8));
The sound_uri was created as follows:
CFStringRef urlstring = CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, string, NULL, NULL, kCFStringEncodingUTF8); CFURLRef sound_uri = CFURLCreateWithString(kCFAllocatorDefault, urlstring, NULL);
Any help will be greatly appreciated.
Thanks, Ashley |
_______________________________________________
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