WaveEncoder Class |
Namespace: Accord.Audio.Formats
The WaveEncoder type exposes the following members.
Name | Description | |
---|---|---|
WaveEncoder |
Constructs a new Wave encoder.
| |
WaveEncoder(FileStream) |
Constructs a new Wave encoder.
| |
WaveEncoder(Stream) |
Constructs a new Wave encoder.
| |
WaveEncoder(String) |
Constructs a new Wave encoder.
|
Name | Description | |
---|---|---|
AverageBitsPerSecond |
Gets the average bits per second
of the underlying Wave stream.
| |
BitsPerSample |
Gets the bits per sample of
the underlying Wave stream.
| |
Bytes |
Gets the total number of bytes
written by this Wave encoder.
| |
Channels |
Gets the number of channels
of the active Wave stream.
| |
Duration |
Gets the total time span duration (in
milliseconds) written by this encoder.
| |
Format |
Gets the sample format used by the encoder.
| |
Frames |
Gets the total number of frames
written by this Wave encoder.
| |
SampleRate |
Gets the sample rate of
the underlying Wave stream.
| |
Samples |
Gets the total number of samples
written by this Wave encoder.
| |
Stream |
Gets the underlying Wave stream.
|
Name | Description | |
---|---|---|
Close |
Closes the underlying stream.
| |
Encode |
Encodes the Wave stream into a Signal object.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Open(FileStream) |
Opens the specified stream.
| |
Open(Stream) |
Open specified stream.
| |
Open(String) |
Open specified stream.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
// Create a stream to hold our encoded audio MemoryStream destinationStream = new MemoryStream(); // Create a encoder for the destination stream WaveEncoder encoder = new WaveEncoder(destinationStream); // Encode the signal to the destination stream encoder.Encode(sourceSignal);