BASS.NET API for the Un4seen BASS Audio Library

BassWmaBASS_WMA_GetTags Method

BASS.NET API for the Un4seen BASS Audio Library
Get the tags from a file, can be used on DRM protected files (not thread-safe!).

Namespace:  Un4seen.Bass.AddOn.Wma
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

public static IntPtr BASS_WMA_GetTags(
	string file
)

Parameters

file
Type: SystemString
Filename from which to get the tags.

Return Value

Type: IntPtr
If succesful, a pointer to the data of the requested tags is returned, else Zero is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

This function gives the same tags as BASS_ChannelGetTags(Int32, BASSTag) (BASS_TAG_WMA), which is a pointer to a series of null-terminated UTF-8 strings, the final string ending with a double null. Unlike BASS_ChannelGetTags(Int32, BASSTag), this function can also be used with DRM-protected WMA files without a DRM licence, as it does not require a stream to be created.

The memory used for the tags is reused by all calls of this function, so if the tags need to be retained across multiple calls, a copy should be made. It also means that this function is not thread-safe, that is it should not be called simultaneously from multiple threads.

ERROR CODEDescription
BASS_ERROR_WMAThe Windows Media modules (v9 or above) are not installed.
BASS_ERROR_FILEOPENThe file could not be opened, or it is not a WMA file.
BASS_ERROR_UNKNOWNSome other mystery problem!

See Also

Reference