Alvas.Audio Class Library

AudioCompressionManager.GetPcmFormat Method 

Creates audio format for PCM data

[Visual Basic]
Public Shared Function GetPcmFormat( _
   ByVal channels As Short, _
   ByVal bitsPerSample As Short, _
   ByVal samplesPerSec As Integer _
) As IntPtr
[C#]
public static IntPtr GetPcmFormat(
   Int16 channels,
   Int16 bitsPerSample,
   Int32 samplesPerSec
);

Parameters

channels
channels number (1 - mono, 2 - stereo)
bitsPerSample
bits per sample (8 or 16)
samplesPerSec
samples per second (6000, for example)

Return Value

Returns pointer to PCM format

See Also

AudioCompressionManager Class | Alvas.Audio Namespace