BASS.NET API for the Un4seen BASS Audio LibraryBASSTag EnumerationBASS.NET API for the Un4seen BASS Audio Library
Types of what's returned by BASS_ChannelGetTags(Int32, BASSTag).

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

public enum BASSTag
Members

  Member nameValueDescription
BASS_TAG_ID30 ID3v1 tags : A pointer to a 128 byte block is returned (see BASS_TAG_ID3).

See www.id3.org for details of the block's structure.

BASS_TAG_ID3V21 ID3v2 tags : A pointer to a variable length block is returned.

See www.id3.org for details of the block's structure.

BASS_TAG_OGG2 OGG comments : Only available when streaming an OGG file. A pointer to a series of null-terminated UTF-8 strings is returned, the final string ending with a double null.
BASS_TAG_HTTP3 HTTP headers : Only available when streaming from a HTTP server. A pointer to a series of null-terminated ANSI strings is returned, the final string ending with a double null.
BASS_TAG_ICY4 ICY headers : A pointer to a series of null-terminated ANSI strings is returned, the final string ending with a double null.
BASS_TAG_META5 ICY (Shoutcast) metadata : A single null-terminated ANSI string containing the current stream title and url (usually omitted). The format of the string is: StreamTitle='xxx';StreamUrl='xxx';
BASS_TAG_APE6 APE (v1 or v2) tags : Only available when streaming an APE file. A pointer to a series of null-terminated UTF-8 strings is returned, the final string ending with a double null.
BASS_TAG_MP47 iTunes/MP4 metadata : Only available when streaming a MP4 file. A pointer to a series of null-terminated UTF-8 strings is returned, the final string ending with a double null.
BASS_TAG_WMA8 WMA header tags: WMA tags : Only available when streaming a WMA file. A pointer to a series of null-terminated UTF-8 strings is returned, the final string ending with a double null.
BASS_TAG_VENDOR9 OGG encoder : A single null-terminated UTF-8 string.
BASS_TAG_LYRICS310 Lyric3v2 tag : A single ANSI string is returned, containing the Lyrics3v2 information. See www.id3.org/Lyrics3v2 for details of its format.
BASS_TAG_WMA_META11 WMA mid-stream tag: a single UTF-8 string.
BASS_TAG_CA_CODEC11 Apple CoreAudio codec info : BASS_TAG_CACODEC structure.
BASS_TAG_FLAC_CUE12 FLAC cuesheet : BASS_TAG_FLAC_CUE structure (which includes BASS_TAG_FLAC_CUE_TRACK and BASS_TAG_FLAC_CUE_TRACK_INDEX).
BASS_TAG_WMA_CODEC12 WMA codec: A description of the codec used by the file. 2 null-terminated UTF-8 strings are returned, with the 1st string being the name of the codec, and the 2nd containing additional information like what VBR setting was used.
BASS_TAG_MF13 Media Foundation tags : A pointer to a series of null-terminated UTF-8 strings is returned, the final string ending with a double null.
BASS_TAG_WAVEFORMAT14 WAVE format : A pointer to a WAVEFORMATEXT structure is returned.
BASS_TAG_RIFF_INFO256 RIFF/WAVE tags : array of null-terminated ANSI strings.
BASS_TAG_RIFF_BEXT257 BWF/RF64 tags (Broadcast Audio Extension) : A pointer to a variable length block is returned (see BASS_TAG_BEXT).

See the EBU specification for details of the block's structure.

When reading BWF tags into a TAG_INFO structure e.g. via BASS_TAG_GetFromFile(String) the following mapping is performed if no RIFF_INFO tags are present:

Description = Title (max. 256 chars)

Originator = Artist (max. 32 chars)

OriginatorReference = EncodedBy (max. 32 chars)

OriginationDate = Year (in format 'yyyy-mm-dd hh:mm:ss')

TimeReference = Track

UMID = Copyright (max. 64 chars)

CodingHistory = Comment

However, if RIFF_INFO tags are present the BWF tags are present in the NativeTags.

BASS_TAG_RIFF_CART258 RIFF/BWF Radio Traffic Extension tags : A pointer to a variable length block is returned (see BASS_TAG_CART).

See the EBU specifications for details of the block's structure.

When reading BWF tags into a TAG_INFO structure e.g. via BASS_TAG_GetFromFile(String) the following mapping is performed if no RIFF_INFO tags are present:

Title = Title (max. 64 chars)

Artist = Artist (max. 64 chars)

Category = Grouping (max. 64 chars)

Classification = Mood (max. 64 chars)

ProducerAppID = Publisher (max. 64 chars)

ProducerAppVersion = EncodedBy (max. 64 chars)

TagText = Comment

However, if RIFF_INFO tags are present the CART tags are present in the NativeTags.

BASS_TAG_RIFF_DISP259 RIFF DISP text chunk: a single ANSI string.
BASS_TAG_APE_BINARY4096 + index# : BASS_TAG_APE_BINARY structure.
BASS_TAG_MUSIC_NAME65536 MOD music name : a single ANSI string.
BASS_TAG_MUSIC_MESSAGE65537 MOD message : a single ANSI string.
BASS_TAG_MUSIC_ORDERS65538 MOD music order list: BYTE array of pattern numbers played at that order position.

Pattern number 254 is "+++" (skip order) and 255 is "---" (end song). You can use BASS_ChannelGetLength(Int32, BASSMode) with BASS_POS_MUSIC_ORDER to get the length of the array.

BASS_TAG_MUSIC_AUTH65539 MOD music author: UTF-8 string, only available in files created with the OpenMPT tracker.
BASS_TAG_MUSIC_INST65792 + instrument#, MOD instrument name : ANSI string
BASS_TAG_MUSIC_SAMPLE66304 + sample#, MOD sample name : ANSI string
BASS_TAG_MIDI_TRACK69632 + track#, track text : array of null-terminated ANSI strings
BASS_TAG_ADX_LOOP73728 ADX tags: A pointer to the ADX loop structure (see BASS_ADX_TAG_LOOP).
BASS_TAG_FLAC_PICTURE73728 + index# : BASS_TAG_FLAC_PICTURE structure.
BASS_TAG_DSD_ARTIST77824 DSDIFF artist : ASCII string
BASS_TAG_DSD_TITLE77825 DSDIFF title : ASCII string
BASS_TAG_DSD_COMMENT78080 + index, DSDIFF comment : A pointer to the DSDIFF comment tag structure (see BASS_TAG_DSD_COMMENT).
BASS_TAG_HLS_EXTINF81920 HLS tags: segment's EXTINF tag, UTF-8 string
BASS_TAG_UNKNOWN-1 Unknown tags : not supported tags
See Also

Reference