BASS.NET API for the Un4seen BASS Audio LibraryBASS_TAG_APE_BINARY ClassBASS.NET API for the Un4seen BASS Audio Library
APE binary tag structure as returned by BASS_ChannelGetTags(Int32, BASSTag) using the BASS_TAG_APE_BINARY flag.
Inheritance Hierarchy

SystemObject
  Un4seen.BassBASS_TAG_APE_BINARY

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

[SerializableAttribute]
[StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public class BASS_TAG_APE_BINARY

The BASS_TAG_APE_BINARY type exposes the following members.

Properties

  NameDescription
Public propertyData
The binary tag data.
Public propertyKey
The name of the tag.
Public propertyLength
The size of Data in bytes.
Top
Methods

  NameDescription
Public methodStatic memberFromIntPtr
Creates an instance of the BASS_TAG_APE_BINARY class from a pointer.
Public methodStatic memberCode exampleGetTag
Gets a BASS_TAG_APE_BINARY tag from a given channel handle.
Public methodToString
Returns the Key of the binary tag.
(Overrides ObjectToString.)
Top
Remarks

When calling BASS_ChannelGetTags(Int32, BASSTag) with the BASS_TAG_APE_BINARY flag make sure to add the index number of the binray tag to get. E.g. call:

Bass.BASS_ChannelGetTags( stream, (BASSTag)(BASSTag.BASS_TAG_APE_BINARY + 1) )
to get the 2nd binary tag.

Examples

Read all APE binary tags:
VB
Dim apeBin As BASS_TAG_APE_BINARY
Dim n As Integer
For n = 0 To (apeBin BASS_TAG_APE_BINARY.GetTag(stream, n)) <> Nothing Step n + 1
    Console.WriteLine(apeBin)
    ' access the binary data
    Dim data() As Byte = apeBin.Data 
Next
BASS_TAG_APE_BINARY apeBin;
for (int n = 0; (apeBin = BASS_TAG_APE_BINARY.GetTag(stream, n)) != null; n++)
{
    Console.WriteLine(apeBin);
    // access the binary data
    byte[] data = apeBin.Data;
}
See Also

Reference