#include "soundfile.h"

int writeAiffFile(char *path, SOUNDINFO *info, void *samples);


path File into which the AIFF data will be written.
info Metadata for the sound data.
samples Buffer that points to the data to be written.

Return Values

Returns SOUND_FILE_FOPEN_ERROR if the file specified by path cannot be opened. Returns SOUND_FILE_SUCCESS otherwise.


Creates an AIFF file specified by path. The samples argument points to the sound data to be written; the info structure describes the sound data. The buffer pointed to by samples must have a length equal to or less than soundinfo.bufferLength bytes.

The samples must be little-endian and have 16-bit alignment.

Do Not Call From

Wii U (Host PC only) Do not call this function on the Wii U console. It is available only on the host PC.

See Also


Revision History

2013/05/08 Automated cleanup pass.
2011/02/21 Initial version.