|   | WaveFormatChunk(Int32, Int16, Int16, UInt16) Constructor | 
        
        
        
        Namespace: GSF.MediaAssembly: GSF.Media (in GSF.Media.dll) Version: 2.4.257-beta
 Syntax
Syntaxpublic WaveFormatChunk(
	int sampleRate,
	short bitsPerSample,
	short channels,
	ushort audioFormat
)
Public Sub New ( 
	sampleRate As Integer,
	bitsPerSample As Short,
	channels As Short,
	audioFormat As UShort
)
public:
WaveFormatChunk(
	int sampleRate, 
	short bitsPerSample, 
	short channels, 
	unsigned short audioFormat
)
new : 
        sampleRate : int * 
        bitsPerSample : int16 * 
        channels : int16 * 
        audioFormat : uint16 -> WaveFormatChunkGSF.Media.WaveFormatChunk = function(sampleRate, bitsPerSample, channels, audioFormat);
Parameters
- sampleRate  Int32
- Sample rate for the WaveFormatChunk.
- bitsPerSample  Int16
- Bits per sample for the WaveFormatChunk.
- channels  Int16
- Audio channels for the WaveFormatChunk.
- audioFormat  UInt16
- Audio format for the WaveFormatChunk.
 Exceptions
Exceptions| Exception | Condition | 
|---|
| InvalidDataException | Invalid bit rate specified - wave file bit rates must be a multiple of 8. | 
 See Also
See Also