libao# 0.8.8
OpenFile Method (fileName, overwrite, bitsPerSample, sampleRate, channels)
NamespacesXiph.Audio.OutputAoDriverOpenFile(String, Boolean, Int32, Int32, Int32)
Open a file for audio output. The file format is determined by the audio driver used.
Declaration Syntax
C#Visual BasicVisual C++
public AoDevice OpenFile(
	string fileName,
	bool overwrite,
	int bitsPerSample,
	int sampleRate,
	int channels
)
Public Function OpenFile ( _
	fileName As String, _
	overwrite As Boolean, _
	bitsPerSample As Integer, _
	sampleRate As Integer, _
	channels As Integer _
) As AoDevice
public:
AoDevice^ OpenFile(
	String^ fileName, 
	bool overwrite, 
	int bitsPerSample, 
	int sampleRate, 
	int channels
)
Parameters
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.
bitsPerSample (Int32)
Bits per sample.
sampleRate (Int32)
Samples per second (in a single channel).
channels (Int32)
Number of audio channels.
Return Value
An AoDevice representing the open device, null if it cannot be opened.

Assembly: libao-sharp (Module: libao-sharp) Version: 0.8.8.18341