BASS.NET API for the Un4seen BASS Audio Library

BassBASS_ChannelGetTagsAPE Method

BASS.NET API for the Un4seen BASS Audio Library
Retrieves the APE (v1 or v2) header 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: 2.4.17.5
Syntax

public static string[] BASS_ChannelGetTagsAPE(
	int handle
)

Parameters

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").
Remarks

Only available when streaming a file containing APE tags.

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

Bass.BASS_PlugInLoad("bass_ape.dll");
...
int stream = Bass.BASS_StreamCreateFile("test.ape", 0, 0, BASSFlag.BASS_DEFAULT);
string[] tags = Bass.BASS_ChannelGetTagsAPE(stream);
foreach (string tag in tags)
  Console.WriteLine(tag);
See Also

Reference