![]() |
Wave
|
public class WaveFormatExtensible : ISupportBinaryImage
The WaveFormatExtensible type exposes the following members.
Name | Description | |
---|---|---|
![]() | WaveFormatExtensible | Creates a new WaveFormatExtensible. |
![]() | WaveFormatExtensible(WaveFormatChunk) | Creates a new WaveFormatExtensible object based on the WaveFormatChunk settings. |
![]() | WaveFormatExtensible(UInt16, Speakers, Guid) | Creates a new WaveFormatExtensible object based on the given settings. |
Name | Description | |
---|---|---|
![]() | BinaryLength | Gets the length of the binary representation of this WaveFormatExtensible instance. |
![]() | ChannelMask | Gets or sets flags representing spatial locations of data channels (i.e., speaker locations). |
![]() | SampleValue | Gets or sets sample value. |
![]() | SubFormat | Gets or sets Guid for sub-format type of extensible WaveFile. |
Name | Description | |
---|---|---|
![]() | 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) |
![]() | GenerateBinaryImage | Generates a binary representation of this WaveFormatExtensible and copies it into the given buffer. |
![]() | 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) |
![]() | ParseBinaryImage | Parses WaveFormatExtensible object by parsing the specified buffer containing a binary image. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |
Name | Description | |
---|---|---|
![]() ![]() | FixedLength | The fixed byte length of a WaveFormatExtensible instance. |
Name | Description | |
---|---|---|
![]() | BinaryImage |
Returns a binary image of an object that implements ISupportBinaryImage.
(Defined by ISupportBinaryImageExtensions) |
![]() | CopyBinaryImageToStream |
Copies binary image of object that implements ISupportBinaryImage to a Stream.
(Defined by ISupportBinaryImageExtensions) |
![]() | CopyImage |
This is a common optimized block copy function for any kind of data.
(Defined by Common) |
![]() | GetEnumValueOrDefault |
Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |
![]() | GetEnumValueOrDefaultT |
Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |
![]() | ParseBinaryImageFromStream |
Parses binary image of object that implements ISupportBinaryImage from a Stream.
(Defined by ISupportBinaryImageExtensions) |
using System; using GSF.Media; using GSF.Media.Sound; static class Program { static void Main() { // Generate an 8000 Hz, 32 bits per sample, mono channeled WAVE file in "Extensible" format WaveFile waveFile = new WaveFile(8000, 32, 1, (ushort)WaveFormat.WaveFormatExtensible); // Apply the "WaveFormatExtensible" extra parameters WaveFormatExtensible extensible = new WaveFormatExtensible(waveFile.FormatChunk); waveFile.ExtraParameters = extensible.BinaryImage; // Generate the EBS Alert noise DTMF.Generate(waveFile, DTMF.EmergencyBroadcastSystemAlert, 0.25D); // Save the generated tone waveFile.Save("ExtensibleTest.wav"); Console.Write("File available to be played from Windows Media Player..."); Console.ReadKey(); } }