Saving an AudioFile without an extension
Saving an AudioFile without an extension
- Subject: Saving an AudioFile without an extension
- From: "Asher Vander Heiden" <email@hidden>
- Date: Fri, 02 Jul 2004 15:19:34 +1000
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.