Click or drag to resize
AudioCompressionManagerChooseCompatibleFormat Method (IntPtr, IntPtr)
Shows the dialog box that enables the user to select the waveform-audio format.

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
public static FormatChooseResult ChooseCompatibleFormat(
	IntPtr owner,
	IntPtr oldFormat


Type: SystemIntPtr
Handle to the window that owns the dialog box.
Type: SystemIntPtr
Specify valid format handle to get the destination formats that can be converted from this format.Or IntPtr.Zero to get all supported formats.

Return Value

Type: FormatChooseResult

[Missing <returns> documentation for "M:Alvas.Audio.AudioCompressionManager.ChooseCompatibleFormat(System.IntPtr,System.IntPtr)"]

This example shows simple using of ChooseCompatibleFormat method.
IntPtr formatOld = AudioCompressionManager.GetPcmFormat(1, 16, 44100);
FormatChooseResult fcr = AudioCompressionManager.ChooseCompatibleFormat(IntPtr.Zero, formatOld);
if (fcr.Result == 0)
    Console.WriteLine("{0} {1}", fcr.FormatTagName, fcr.FormatName);
    IntPtr format = fcr.Format;
See Also