Click or drag to resize
AudioCompressionManagerChooseCompatibleFormat Method (IntPtr, IntPtr, String)
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
Syntax
public static FormatChooseResult ChooseCompatibleFormat(
	IntPtr owner,
	IntPtr oldFormat,
	string title
)

Parameters

owner
Type: SystemIntPtr
Handle to the window that owns the dialog box.
oldFormat
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.
title
Type: SystemString
Dialog box title

Return Value

Type: FormatChooseResult

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

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