Miles Sound System SDK 7.2a

AIL_WAV_file_write

The function AIL_WAV_file_write creates a new Microsoft .WAV file.

S32 AIL_WAV_file_write(
  char const * filename,
  void const * buf,
  U32 len,
  S32 rate,
  S32 format
);

In Parameters

filename
specifies the data file that you wish to write to.
buf
specifies the address to write from.
len
specifies the number of bytes to write.
rate
specifies the playback frequency of the data.
format
specifies the playback format of the data. It should be set to one of the MILES_DIGITAL_FORMAT constants.

Returns

Whether the function succeeded or not.

Discussion

Under DOS and MacOS 9, this function must not be invoked from an interrupt-based callback function.


Group: Memory and File Services
Related Functions: AIL_WAV_file_fss_write, AIL_file_error, AIL_file_fss_attrib_write, AIL_file_fss_read, AIL_file_fss_write, AIL_file_write, AIL_process_digital_audio
Related Basic Types: MILES_DIGITAL_FORMAT, S32, U32, char const *, void const *

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.