As well as WAVE files, this is also provided by Media Foundation codecs.
Assembly: Bass.Net (in Bass.Net.dll) Version: 18.104.22.168
public static WAVEFORMATEXT BASS_ChannelGetTagsWAVEFORMAT( int handle )
Public Shared Function BASS_ChannelGetTagsWAVEFORMAT ( handle As Integer ) As WAVEFORMATEXT
public: static WAVEFORMATEXT^ BASS_ChannelGetTagsWAVEFORMAT( int handle )
static member BASS_ChannelGetTagsWAVEFORMAT : handle : int -> 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.|