Alvas.Audio Class Library

AudioCompressionManager.GetFormatList Method (Int32, Int32, Boolean)

Gets the format list for specified format tag and driver.

[Visual Basic]
Overloads Public Shared Function GetFormatList( _
   ByVal formatTag As Integer, _
   ByVal driver As Integer, _
   ByVal showFormatTag As Boolean _
) As FormatDetails()
[C#]
public static FormatDetails[] GetFormatList(
   Int32 formatTag,
   Int32 driver,
   Boolean showFormatTag
);

Parameters

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

Return Value

Example

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

AudioCompressionManager Class | Alvas.Audio Namespace | AudioCompressionManager.GetFormatList Overload List