WaveWriter Class |
Namespace: Alvas.Audio
The WaveWriter type exposes the following members.
Name | Description | |
---|---|---|
WaveWriter |
Initializes a new instance of the WaveWriter class based on the supplied stream and a specific audio format header.
|
Name | Description | |
---|---|---|
Close | Closes the current BinaryWriter and the underlying stream. (Inherited from BinaryWriter.) | |
Dispose | Releases all resources used by the current instance of the BinaryWriter class. (Inherited from BinaryWriter.) | |
Equals | (Inherited from Object.) | |
Flush | Clears all buffers for the current writer and causes any buffered data to be written to the underlying device. (Inherited from BinaryWriter.) | |
GetFormat |
Returns pointer to audio format.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Seek | Sets the position within the current stream. (Inherited from BinaryWriter.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Write(Boolean) | Writes a one-byte Boolean value to the current stream, with 0 representing false and 1 representing true. (Inherited from BinaryWriter.) | |
Write(Byte) | Writes an unsigned byte to the current stream and advances the stream position by one byte. (Inherited from BinaryWriter.) | |
Write(SByte) | Writes a signed byte to the current stream and advances the stream position by one byte. (Inherited from BinaryWriter.) | |
Write(Byte) | Writes a byte array to the underlying stream. (Inherited from BinaryWriter.) | |
Write(Char) | Writes a Unicode character to the current stream and advances the current position of the stream in accordance with the Encoding used and the specific characters being written to the stream. (Inherited from BinaryWriter.) | |
Write(Char) | Writes a character array to the current stream and advances the current position of the stream in accordance with the Encoding used and the specific characters being written to the stream. (Inherited from BinaryWriter.) | |
Write(Double) | Writes an eight-byte floating-point value to the current stream and advances the stream position by eight bytes. (Inherited from BinaryWriter.) | |
Write(Decimal) | Writes a decimal value to the current stream and advances the stream position by sixteen bytes. (Inherited from BinaryWriter.) | |
Write(Int16) | Writes a two-byte signed integer to the current stream and advances the stream position by two bytes. (Inherited from BinaryWriter.) | |
Write(UInt16) | Writes a two-byte unsigned integer to the current stream and advances the stream position by two bytes. (Inherited from BinaryWriter.) | |
Write(Int32) | Writes a four-byte signed integer to the current stream and advances the stream position by four bytes. (Inherited from BinaryWriter.) | |
Write(UInt32) | Writes a four-byte unsigned integer to the current stream and advances the stream position by four bytes. (Inherited from BinaryWriter.) | |
Write(Int64) | Writes an eight-byte signed integer to the current stream and advances the stream position by eight bytes. (Inherited from BinaryWriter.) | |
Write(UInt64) | Writes an eight-byte unsigned integer to the current stream and advances the stream position by eight bytes. (Inherited from BinaryWriter.) | |
Write(Single) | Writes a four-byte floating-point value to the current stream and advances the stream position by four bytes. (Inherited from BinaryWriter.) | |
Write(String) | Writes a length-prefixed string to this stream in the current encoding of the BinaryWriter, and advances the current position of the stream in accordance with the encoding used and the specific characters being written to the stream. (Inherited from BinaryWriter.) | |
Write(Byte, Int32, Int32) | Writes a region of a byte array to the current stream. (Inherited from BinaryWriter.) | |
Write(Char, Int32, Int32) | Writes a section of a character array to the current stream, and advances the current position of the stream in accordance with the Encoding used and perhaps the specific characters being written to the stream. (Inherited from BinaryWriter.) | |
WriteData(Byte) |
Writes an audio byte array to the underlying stream.
(Overrides AudioWriterWriteData(Byte).) | |
WriteData(Byte, Int64) |
Writes an audio byte array to the underlying stream from specified position.
(Overrides AudioWriterWriteData(Byte, Int64).) | |
WriteData(Byte, Int64, WriteMode) |
Writes an audio byte array to the underlying stream from specified position in specified mode.
(Overrides AudioWriterWriteData(Byte, Int64, WriteMode).) |
Name | Description | |
---|---|---|
BaseStream | Gets the underlying stream of the BinaryWriter. (Inherited from BinaryWriter.) |
string fileName = "123.wav"; RecorderEx recEx = new RecorderEx(); Stream stream = new FileStream(fileName, FileMode.Create); WaveWriter wr = new WaveWriter(stream, recEx.FormatBytes());