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