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

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

public static string[] BASS_ChannelGetTagsID3V2(
	int handle
)

Parameters

handle
Type: SystemInt32
The channel handle...a HSTREAM.

Return Value

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

ExceptionCondition
NotSupportedExceptionInvalid/Unsupported ID3v2 version detected.
Remarks

Only tag values containing strings are returned (e.g. Txxx, Wxxx or COMM tags).

ID3v2 tags are supported at both the start and end of the file.

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.

Examples

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

Reference