writeWaveFile

Syntax

#include "soundfile.h"

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

Parameters

path File into which WAV 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.

Description

Creates a WAV 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

writeAiffFile

Revision History

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


CONFIDENTIAL