afNewFileSetup - Man Page

create and initialize a new AFfilesetup structure


#include <audiofile.h>
AFfilesetup afNewFileSetup(void);

Return Value

afNewFileSetup returns, upon success, a valid AFfilesetup structure.

Upon failure, afNewFileSetup returns a null AFfilesetup. This case should only occur when no memory is available.


The opaque AFfilesetup structure returned by afNewFileSetup can be used to specify parameters for a file to be opened for writing by afOpenFile(3).

See Also



Michael Pruett <>

Referenced By

afInitAESChannelDataTo(3), afInitCompression(3), afInitFileFormat(3), afInitSampleFormat(3), afOpenFile(3).

03/06/2013 Audio File Library 0.3.6