Re: Saving an AudioFile without an extension
Re: Saving an AudioFile without an extension
- Subject: Re: Saving an AudioFile without an extension
- From: "Asher Vander Heiden" <email@hidden>
- Date: Mon, 12 Jul 2004 20:14:37 +1000
Hey,
I sorry, I cannot follow the answer given here.
I appreciate the answer you have given, but I have no Idea what is ment by
"pass that as a hint to AudioFileOpen.". There is no reference to what
'passing a hint' means anywhere in the documentation!
(As a bit of a side issue, I think what would make things a lot clearer for
developers if there were a decent amount of examples of code given in the
documentation. Most other development environments have this! I do not
believe that a trial and error approach to development is good enough .....
There I've said it.)
Thanks,
Asher Vander Heiden
From: Doug Wyatt <email@hidden>
To: Asher Vander Heiden <email@hidden>
CC: email@hidden
Subject: Re: Saving an AudioFile without an extension
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.
_________________________________________________________________
SEEK: Now with over 50,000 dream jobs! Click here:
http://ninemsn.seek.com.au?hotmail
_______________________________________________
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.