BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_ChannelGetTagsRIFF Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves the RIFF/WAVE Info tags from a channel, if they are available.

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

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

public static string[] BASS_ChannelGetTagsRIFF(
	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 'ID=Value' (e.g. "IART =This is the Artist").
Remarks

Only available for RIFF/WAVE files.

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.wav", 0, 0, BASSFlag.BASS_DEFAULT)
Dim tags As String() = Bass.BASS_ChannelGetTagsRIFF(stream)
Dim tag As String
For Each tag In tags
  Console.WriteLine(tag)
Next tag
int stream = Bass.BASS_StreamCreateFile("test.wav", 0, 0, BASSFlag.BASS_DEFAULT);
string[] tags = Bass.BASS_ChannelGetTagsRIFF(stream);
foreach (string tag in tags)
  Console.WriteLine(tag);
See Also

Reference