BASS.NET API for the Un4seen BASS Audio Library

BASS_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.17.5
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:
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