Open a file for audio output. The file format is determined by the audio driver used.
Declaration Syntax
C# | Visual Basic | Visual C++ |
Parameters
- driver_id (Int32)
- The ID number of the driver as returned by either driver_id(String) or default_driver_id()()().
- filename (String)
- Name of the file in which to store the audio. The special filename "-" corresponds to stdout.
- overwrite (Boolean)
- If true, the file is automatically overwritten. If false, then a preexisting file will cause the function to return null.
- format (ao_sample_format)
- A structure describing the sample format.
- option (IntPtr)
- A linked list of options to be passed to the driver or NULL if no options are needed. Unsupported options are ignored.
Return Value
An ao_device structure which must be passed in subsequent calls to play(ao_device, array<Byte>[]()[], UInt32) and close(ao_device).