• 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: Saving an AudioFile without an extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving an AudioFile without an extension


  • Subject: Re: Saving an AudioFile without an extension
  • From: Doug Wyatt <email@hidden>
  • Date: Tue, 6 Jul 2004 12:59:04 -0700

If there was an answer to your question in this thread, I didn't see it.

You are free to set the 'Sd2f' file type on the file after creating it, and, if, when opening an AudioFile, you see that its HFS type code is 'Sd2f', pass that as a hint to AudioFileOpen.

I think we have a bug to use a file's HFS type code (when present) to help identify it, but the above is how things work today.

Doug

On Jul 1, 2004, at 22:19, Asher Vander Heiden wrote:
Hello All its me again,

I'm having a bit of trouble with the 'AudioToolbox' and the wrapper files in auprocess.cpp.

What I'm trying to do is to save a new Audio File as a SoundDesigner2 file without having to specify an extension in the 'destFilePath' .
Here's some of the code:

char* destFilePath = "/Users/lachlanbarratt/Desktop/NewFile";
CAAudioFile destFile;

destFile.Create (destFilePath, 'Sd2f');
AudioFileID destID = destFile.GetAudioFileID();

// Doing My Processing !!!!

err = AudioFileClose(destID);
checkStatus( err);


The problem is that although I am creating the file as a 'Sd2f' file after I close the file, the operating system does not recognize this as a new SoundDesigner2 file !!!!

The only way to save this as a SoundDesigner2 file is to add the extension at the end of the path name, like thus:

char* destFilePath = "/Users/lachlanbarratt/Desktop/NewFile.sd2";


Now, My Question is this:
How can I save this file as a SoundDesigner2 file without adding the extension ?

I would appreciate any answers to this problem. Thank you,

Asher Vander Heiden.

_________________________________________________________________
Open an Online Savings Account today & collect a bonus $30*! http://clk.atdmt.com/1DG/go/hsb005000991dg/direct/01/
_______________________________________________
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.
_______________________________________________
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: 
 >Saving an AudioFile without an extension (From: "Asher Vander Heiden" <email@hidden>)

  • Prev by Date: Re: AUGraphRemoveNode and kAudioUnitUninitializeSelect
  • Next by Date: Re: Setting the AU's sample rate
  • Previous by thread: Re: Saving an AudioFile without an extension
  • Next by thread: RE: Saving an AudioFile without an extension
  • Index(es):
    • Date
    • Thread