As well as WAVE files, this is also provided by Media Foundation codecs.
Assembly: Bass.Net (in Bass.Net.dll) Version: 220.127.116.11
public static WAVEFORMATEXT BASS_ChannelGetTagsWAVEFORMAT( int handle )
Public Shared Function BASS_ChannelGetTagsWAVEFORMAT ( handle As Integer ) As WAVEFORMATEXT
- Type: SystemInt32
The channel handle.
Return ValueType: WAVEFORMATEXT
or an instance of the WAVEFORMATEXT structure on success.
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.
|BASS_ERROR_HANDLE||handle is not valid.|
|BASS_ERROR_NOTAVAIL||The requested tags are not available.|