• 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
FSRef to audiofile in bundle not working?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FSRef to audiofile in bundle not working?


  • Subject: FSRef to audiofile in bundle not working?
  • From: "Mark's Studio" <email@hidden>
  • Date: Mon, 25 Nov 2002 19:05:59 +0100

I wanted to load an Audiofile from within my app, it's a Cocoa App.

so i did this
path = [[NSBundle mainBundle] pathForResource:@"AccGtr" ofType:@"sd2"]

FSPathMakeRef([path fileSystemRepresentation],&ref,NULL)

AudioFileOpen(&ref, fsRdPerm, 0, &mAudioFileID)

it's not working

but if i change the path to the same file in my home dir it's working?



Peter Mark

Mark's Recording Studio A/S
Faelledvej 19 b DK2200 N
Copenhagen Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: FSRef to audiofile in bundle not working?
      • From: Bill Stewart <email@hidden>
  • Prev by Date: OT: alias options in gcc?
  • Next by Date: Re: FSRef to audiofile in bundle not working?
  • Previous by thread: Re: OT: alias options in gcc?
  • Next by thread: Re: FSRef to audiofile in bundle not working?
  • Index(es):
    • Date
    • Thread