BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_ChannelGetTagsWAVEFORMAT Method BASS.NET API for the Un4seen BASS Audio Library
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.12.0
Syntax

public static WAVEFORMATEXT BASS_ChannelGetTagsWAVEFORMAT(
	int handle
)

Parameters

handle
Type: SystemInt32
The channel handle.

Return Value

Type: WAVEFORMATEXT
or an instance of the WAVEFORMATEXT structure on success.
Remarks

Only available when streaming a file using a Media Foundation codec (available on Windows7 and updated Vista only) or a WAVE file.

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 CODEDescription
BASS_ERROR_HANDLEhandle is not valid.
BASS_ERROR_NOTAVAILThe requested tags are not available.

See Also

Reference