Miles Sound System SDK 7.2a

AIL_WAV_file_fss_write

The function AIL_WAV_file_fss_write creates a new MacOS .WAV file spec.

S32 AIL_WAV_file_fss_write(
  FSSpec 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

This function is only used on the Mac with the Classic or Carbon CFM libraries - the Mach-O version of Miles just uses normal Unix style slash separated string filenames. This function must not be invoked from an interrupt-based callback function.


Group: Memory and File Services
Related Sections: Filenames on MacOS
Related Functions: AIL_WAV_file_write, AIL_file_fss_attrib_write, AIL_file_fss_read, AIL_file_fss_write
Related Basic Types: FSSpec, MILES_DIGITAL_FORMAT, S32, U32, void const *

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