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

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.


  • Follow-Ups:
    • Re: Saving an AudioFile without an extension
      • From: Doug Wyatt <email@hidden>
    • Re: Saving an AudioFile without an extension
      • From: Richard Dobson <email@hidden>
  • Prev by Date: motu pci-424, is this supported
  • Next by Date: Re: Saving an AudioFile without an extension
  • Previous by thread: motu pci-424, is this supported
  • Next by thread: Re: Saving an AudioFile without an extension
  • Index(es):
    • Date
    • Thread