• 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: newbie q - referencing files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >newbie q - referencing files (From: Urs Heckmann <email@hidden>)

  • Prev by Date: Re: newbie q - referencing files
  • Next by Date: AudioUnitReset & apple hi shelf
  • Previous by thread: Re: newbie q - referencing files
  • Next by thread: Re: newbie q - referencing files
  • Index(es):
    • Date
    • Thread