Re: newbie q - referencing files
Re: newbie q - referencing files
- Subject: Re: newbie q - referencing files
- From: Carsten Gehle <email@hidden>
- Date: Wed, 23 Oct 2002 01:53:02 +0200
I would store FSRefs (or posix paths/CFURL) in the ClassInfo's 'data'
property. FSSpecs do not handle long file names and unicode chars
properly. As far as I remember you can use FSSpecs, but for long
filename you will get names which differ from that ones shown by the
Finder, though those FSSpecs are resolved correctly after being
restored. If you have FSSpecs, conversion to FSRefs is very easy:
FSpMakeFSRef(&fsspec, &fsref);
and the recursive thing is done by
FSGetCatalogInfo(&fsref, kFSCatInfoNone, NULL, NULL, &fsspec, NULL);
Note that FSRef are only valid if they point to an existing file.
Best,
Carsten
how would one's AU remember an audio file it uses in a preset (i.e. if
it is a sampling device)?
Do you store the path/filename or a file handle or an FSspec-type of
data?
How do these devices usually manage this?
(this has always been one of the big riddles since I started audio
dev, and I need to find this out now :-)
_______________________________________________
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.