Retrieves the WAVE "fmt" chunk contents (WAVEFORMATEXT structure).
As well as WAVE files, this is also provided by Media Foundation codecs.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- handle
- Type: SystemInt32
The channel handle.
Return Value
Type: WAVEFORMATEXTor an instance of the WAVEFORMATEXT structure on success.
Remarks
When a Media Foundation codec is in use, the WAVEFORMATEXT structure's wFormatTag member can be used to find out what the source format is. Some typical wFormatTag examples are: 0x0161 = WMA, 0x0162 = WMA_PRO, 0x0163 = WMA_LOSSLESS, 0x1610 = MPEG_HEAAC.
In addition you might also use the BassTags class, which provides extended TAG reading support.
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
BASS_ERROR_NOTAVAIL | The requested tags are not available. |
See Also