AudioCompressionManagerGetCompatibleFormat Method |
Gets the format for the conversion from the specified format and specified format tag.
Namespace: Alvas.AudioAssembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax public static IntPtr GetCompatibleFormat(
IntPtr format,
short formatTag
)
Public Shared Function GetCompatibleFormat (
format As IntPtr,
formatTag As Short
) As IntPtr
public:
static IntPtr GetCompatibleFormat(
IntPtr format,
short formatTag
)
Parameters
- format
- Type: SystemIntPtr
The format handle - formatTag
- Type: SystemInt16
The format tag
Return Value
Type:
IntPtr[Missing <returns> documentation for "M:Alvas.Audio.AudioCompressionManager.GetCompatibleFormat(System.IntPtr,System.Int16)"]
Examples This example shows simple using of GetCompatibleFormat method.
IntPtr formaGsm = AudioCompressionManager.GetCompatibleFormat(AudioCompressionManager.GetPcmFormat(1, 16, 16000),
AudioCompressionManager.Gsm610FormatTag);
FormatDetails fd = AudioCompressionManager.GetFormatDetails(formaGsm, true);
Console.WriteLine(fd.ToString());
See Also