BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_ChannelGetTagsOGG Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves the OGG tags from a channel, if they are available.

This special helper method already evaluates the null-terminated and variable length data block using UTF-8 strings.

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version:

public static string[] BASS_ChannelGetTagsOGG(
	int handle


Type: SystemInt32
The channel handle.

Return Value

Type: String
or an array of strings. Each array element will represent one tag in the format 'TagName=Value' (e.g. "TITLE=This is a Title").

Only available when streaming an OGG file.

In a chained OGG file containing multiple bitstreams, each bitstream will have its own tags. To get the tags from a particular one, BASS_ChannelSetPosition(Int32, Int64, BASSMode) can be first used to seek to it.

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.


Dim stream As Integer = Bass.BASS_StreamCreateFile("test.ogg", 0, 0, BASSFlag.BASS_DEFAULT)
Dim tags As String() = Bass.BASS_ChannelGetTagsOGG(stream)
Dim tag As String
For Each tag In tags
Next tag
int stream = Bass.BASS_StreamCreateFile("test.ogg", 0, 0, BASSFlag.BASS_DEFAULT);
string[] tags = Bass.BASS_ChannelGetTagsOGG(stream);
foreach (string tag in tags)
See Also