Click or drag to resize
AudioCompressionManagerCreateFormat Method
Create audio format from the byte array.

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public static IntPtr CreateFormat(
	byte[] arr
)

Parameters

arr
Type: SystemByte
byte array

Return Value

Type: IntPtr
audio format
Examples
This example shows simple using of CreateFormat method.
IntPtr format = AudioCompressionManager.CreateFormat(AudioCompressionManager.FormatBytes(AudioCompressionManager.GetPcmFormat(2, 16, 8000)));
FormatDetails fd = AudioCompressionManager.GetFormatDetails(format, true);
Console.WriteLine(fd.ToString());
See Also