Assembly: Bass.Net (in Bass.Net.dll) Version: 18.104.22.168
public WaveWriter( string fileName, int stream, bool rewrite )
Public Sub New ( fileName As String, stream As Integer, rewrite As Boolean )
public: WaveWriter( String^ fileName, int stream, bool rewrite )
new : fileName : string * stream : int * rewrite : bool -> WaveWriter
- Type: SystemString
Fully referenced path and file name of the Wave file to create.
- Type: SystemInt32
A BASS stream channel (HMUSIC, HSTREAM, HRECORD) for which to create a WaveWriter.
- Type: SystemBoolean
Specifies, if an existing fileName should be overwritten (=overwrite, =do not overwrite).
|ArgumentException||The channel information could not be retrieved for the stream.|
|IOException||The file already exists (only raised if the rewrite has not been used). Or the Wave Header could not be written.|
When you have created the stream with the BASS_SAMPLE_FLOAT flag the Wave file will be written in 32-bit float format (WAVE_FORMAT_IEEE_FLOAT). When you have created the stream with the BASS_SAMPLE_8BITS flag the Wave file will be written in 8-bit unsigned format (WAVE_FORMAT_PCM). In all other cases the the Wave file will be written in 16-bit signed format (WAVE_FORMAT_PCM).
Note: 24-bit resolutions are not supported with this overload.
If the stream contains more than 2 channels (e.g. multi-channel) the Wave file will be written in the WAVE_FORMAT_EXTENSIBLE format.