FSRef to audiofile in bundle not working?
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.