Alvas.Audio Class Library

AudioCompressionManager.GetFormatList Method (Int32, Int32)

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 _
) As FormatDetails()
[C#]
public static FormatDetails[] GetFormatList(
   Int32 formatTag,
   Int32 driver
);

Parameters

formatTag
The format tag.
driver
The driver id.

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);
            break;
        }
    };
}
 

See Also

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