afInitFileFormat(3dm) afInitFileFormat(3dm) NAME afInitFileFormat, AFinitfilefmt - initialize the audio file format type in an AFfilesetup structure SYNOPSIS #include <dmedia/audiofile.h> void afInitFileFormat(AFfilesetup setup, int filefmt) PARAMETER setup is an AFfilesetup structure, previously created by a call to afNewFileSetup(3dm). filefmt is a symbolic integer constant which specifies an audio file format supported by the audio file library. DESCRIPTION afInitFileFormat() configures the file format parameter in an AFfilesetup structure. A file opened for write access by calling afOpenFile(3dm) with this AFfilesetup structure will be formatted accordingly. The current valid audio file types (defined in <dmedia/audiofile.h>) are: AF_FILE_AIFFC Extended Audio Interchange File Format (AIFF-C) AF_FILE_AIFF Audio Interchange File Format (AIFF) AF_FILE_NEXTSND NeXT .snd and Sun .au AF_FILE_WAVE Waveform Audio File Format (RIFF) AF_FILE_BICSF Berkeley/IRCAM/CARL Sound File format AF_FILE_MPEG1BITSTREAM MPEG-1 Audio Bitstream encoded data AF_FILE_SOUNDESIGNER2 Sound Designer File Format II AF_FILE_AVR Audio Visual Research (tm) File Format AF_FILE_IFF_8SVX Amiga IFF/8SVX File Format AF_FILE_VOC Creative Labs VOC File Format AF_FILE_SAMPLEVISION Sample Vision File Format AF_FILE_SOUNDFONT2 Creative Labs SoundFont2 (tm) File Format AF_FILE_RAWDATA Raw (headerless) audio data (used in raw read- access mode only) CAVEATS The Audio File Library will continue to expand the number of supported file formats. The ability of these file formats to store various kinds of Audio File Library chunks and data will vary. See afGetFileFormat(3dm) for some important notes about handling this situation. SEE ALSO afNewFileSetup(3dm), afOpenFile(3dm), afGetFileFormat(3dm), afSetVirtualSampleFormat(3dm), afGetVirtualSampleFormat(3dm) Page 2