• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AudioFileOpenURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: AudioFileOpenURL
      • From: james mccartney <email@hidden>
    • Re: AudioFileOpenURL
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: ExtAudioFileSeek and ExtAudioFileTell?
  • Next by Date: Re: AudioFileOpenURL
  • Previous by thread: Re: ExtAudioFileSeek and ExtAudioFileTell?
  • Next by thread: Re: AudioFileOpenURL
  • Index(es):
    • Date
    • Thread