AudioCompressionManagerGetFormatList Method (Int32, Int32, Boolean) |
Gets the format list for specified format tag and driver.
Namespace: Alvas.AudioAssembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax public static FormatDetails[] GetFormatList(
int formatTag,
int driver,
bool showFormatTag
)
Public Shared Function GetFormatList (
formatTag As Integer,
driver As Integer,
showFormatTag As Boolean
) As FormatDetails()
public:
static array<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