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

Re: FSRef to audiofile in bundle not working?


  • Subject: Re: FSRef to audiofile in bundle not working?
  • From: Bill Stewart <email@hidden>
  • Date: Mon, 25 Nov 2002 10:34:01 -0800

What's the path look like that you're getting back?

On Monday, November 25, 2002, at 10:05 AM, Mark's Studio wrote:

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.


-- mailto:email@hidden
tel: +1 408 974 4056

________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __
_______________________________________________
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.
References: 
 >FSRef to audiofile in bundle not working? (From: "Mark's Studio" <email@hidden>)

  • Prev by Date: FSRef to audiofile in bundle not working?
  • Next by Date: MusicDevice problems with AUgraph hosts
  • Previous by thread: FSRef to audiofile in bundle not working?
  • Next by thread: MusicDevice problems with AUgraph hosts
  • Index(es):
    • Date
    • Thread