AudioCompressionManagerChooseCompatibleFormat Method (IntPtr, IntPtr) |
Shows the dialog box that enables the user to select the waveform-audio format.
Namespace: Alvas.AudioAssembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax public static FormatChooseResult ChooseCompatibleFormat(
IntPtr owner,
IntPtr oldFormat
)
Public Shared Function ChooseCompatibleFormat (
owner As IntPtr,
oldFormat As IntPtr
) As FormatChooseResult
public:
static FormatChooseResult^ ChooseCompatibleFormat(
IntPtr owner,
IntPtr oldFormat
)
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.
Return Value
Type:
FormatChooseResult[Missing <returns> documentation for "M:Alvas.Audio.AudioCompressionManager.ChooseCompatibleFormat(System.IntPtr,System.IntPtr)"]
Examples 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