Click or drag to resize
AudioCompressionManagerGetFormatList Method (Int32, Int32, Boolean)
Gets the format list for specified format tag and driver.

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public static FormatDetails[] GetFormatList(
	int formatTag,
	int driver,
	bool showFormatTag
)

Parameters

formatTag
Type: SystemInt32
The format tag.
driver
Type: SystemInt32
The driver id.
showFormatTag
Type: SystemBoolean
Shows format tag name as result of ToString()method.

Return Value

Type: FormatDetails

[Missing <returns> documentation for "M:Alvas.Audio.AudioCompressionManager.GetFormatList(System.Int32,System.Int32,System.Boolean)"]

Examples
This example shows simple using of GetFormatList method for specified driver.
private void GetDriver()
{
    foreach (DriverDetails dd in AudioCompressionManager.GetDriverList())
    {
        if (dd.LongName.Contains("{insert text here}"))
        {
            int driverId = dd.Driver;
            FormatDetails[] fd = AudioCompressionManager.GetFormatList(AudioCompressionManager.MpegLayer3FormatTag, driverId, true);
            break;
        }
    };
}
See Also