BASS.NET API for the Un4seen BASS Audio LibraryBASS_TAG_APE_BINARYGetTag Method BASS.NET API for the Un4seen BASS Audio Library
Gets a BASS_TAG_APE_BINARY tag from a given channel handle.

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

public static BASS_TAG_APE_BINARY GetTag(
	int handle,
	int index
)

Parameters

handle
Type: SystemInt32
The channel handle...a HMUSIC or HSTREAM.
index
Type: SystemInt32
The zero-based index of the binary tag to get.

Return Value

Type: BASS_TAG_APE_BINARY
Returns a BASS_TAG_APE_BINARY instance if the BASS_TAG_APE_BINARY could be retrieved successfully - else is returned.
Remarks

This method internally calles BASS_ChannelGetTags(Int32, BASSTag) to retrieve the BASS_TAG_APE_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