Click or drag to resize
Accord.NET (logo)

ExtensionsToWaveFormat Method

Converts a sample format into an appropriate WaveFormatEncoding.

Namespace:  Accord.Audio
Assembly:  Accord.Audio.DirectSound (in Accord.Audio.DirectSound.dll) Version: 3.8.0
Syntax
public static WaveFormatEncoding ToWaveFormat(
	this SampleFormat sampleFormat
)
Request Example View Source

Parameters

sampleFormat
Type: Accord.AudioSampleFormat
The sample format.

Return Value

Type: WaveFormatEncoding

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SampleFormat. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also