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:
AFFILEAIFFC Extended Audio Interchange File Format (AIFF-C)
AFFILEAIFF Audio Interchange File Format (AIFF)
AFFILENEXTSND NeXT .snd and Sun .au
AFFILEWAVE Waveform Audio File Format (RIFF)
AFFILEBICSF Berkeley/IRCAM/CARL Sound File format
AFFILEMPEG1BITSTREAM MPEG-1 Audio Bitstream encoded data
AFFILESOUNDESIGNER2 Sound Designer File Format II
AFFILEAVR Audio Visual Research (tm) File Format
AFFILEIFF8SVX Amiga IFF/8SVX File Format
AFFILEVOC Creative Labs VOC File Format
AFFILESAMPLEVISION Sample Vision File Format
AFFILESOUNDFONT2 Creative Labs SoundFont2 (tm) File Format
AFFILERAWDATA Raw (headerless) audio data (used in raw read-
access mode only)
Page 1
afInitFileFormat(3dm) afInitFileFormat(3dm)
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