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.17.7
Syntax
Parameters
- handle
- Type: SystemInt32
The channel handle...a HSTREAM. - p (Optional)
- Type: SystemIntPtr
An optional pointer to an ID3v2 structure if available; if not given the BASS_TAG_ID3V2 is used on the handle.
Return Value
Type: Stringor an array of strings. Each array element will represent one tag in the format 'FrameId=Value' (e.g. "TIT2=This is a Title").
Exceptions
| Exception | Condition |
|---|---|
| NotSupportedException | Invalid/Unsupported ID3v2 version detected. |
Remarks
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 CODE | Description |
|---|---|
| BASS_ERROR_HANDLE | handle is not valid. |
| BASS_ERROR_NOTAVAIL | The requested tags are not available. |
Examples
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