Click or drag to resize

WaveFile Methods

The WaveFile type exposes the following members.

Methods
  Name Description
Public method AddSample Add the sample to the wave file.
Public method AddSampleBlock Adds a block of samples in native format to the wave file (e.g., if BitsPerSample = 16, parameters need to be Int16 values). Note that LittleBinaryValue parameter type is implicitly castable to common native types, including floating points.
Public method AddSamples Adds a series of samples, one per channel, to the wave file.
Public method Static member Append Appends wave files together, one after another, into a single file.
Public method CastSample Casts sample value to its equivalent native type based on defined BitsPerSample and AudioFormat.
Public method Clone Creates a deeply cloned copy of the WaveFile.
Public method Static member CloneSampleBlock Performs a deep clone of all the channel samples in a sample block.
Public method Static member Combine(WaveFile) Combines wave files together, all starting at the same time, into a single file. This has the effect of playing two sound tracks simultaneously.
Public method Static member Combine(WaveFile, Double) Combines wave files together, all starting at the same time, into a single file. This has the effect of playing two sound tracks simultaneously.
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public method GetHashCode Serves as the default hash function.
(Inherited from Object)
Public method GetSampleTypeCode Determines sample data type code based on defined BitsPerSample and AudioFormat.
Public method GetType Gets the Type of the current instance.
(Inherited from Object)
Public method Static member Load(Stream, Boolean) Creates a new in-memory wave loaded from an existing wave audio stream.
Public method Static member Load(String, Boolean) Creates a new in-memory wave loaded from an existing wave file.
Protected method MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
Public method Play Plays the wave file using SoundPlayer.
Public method Reverse Reverses the data samples in the wave file.
Public method Save(Stream) Saves wave file to the specified stream.
Public method Save(String) Saves wave file to the specified file name.
Public method ToString Returns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
  Name Description
Public Extension Method GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension Method GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also