Open a file for audio output. The file format is determined by the audio driver used.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public AoDevice OpenFile( string fileName, bool overwrite, int bitsPerSample, int sampleRate, int channels, AoDriverOptions options )
Parameters
- fileName (String)
- Name of the file in which to store the audio. The special filename "-" corresponds to stdout.
- bitsPerSample (Int32)
- Bits per sample.
- sampleRate (Int32)
- Samples per second (in a single channel).
- channels (Int32)
- Number of audio channels.
- options (AoDriverOptions)
- An AoDriverOptions object containing driver-specific options.
Return Value
An AoDevice representing the open device, null if it cannot be opened.