BASS.NET API for the Un4seen BASS Audio Library

BassWinampBASS_WINAMP_GetFileInfo Method

BASS.NET API for the Un4seen BASS Audio Library
Returns information about a given file.

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

public static bool BASS_WINAMP_GetFileInfo(
	string file,
	ref string title,
	ref int lenms
)

Parameters

file
Type: SystemString
The name of the file to retrieve the information from.
title
Type: SystemString
Returns the title of the given file.
lenms
Type: SystemInt32
Returns the length of the given file in milliseconds.

Return Value

Type: Boolean
if the information was retrieved successfully, else is returned.
Examples

C#
int len = 0;
string title = String.Empty;
if ( BassWinamp.BASS_WINAMP_GetFileInfo("testfile.mp3", ref title, ref len) )
{
    Console.WriteLine( "Title={0}, Length={1}ms", title, len );
}
See Also

Reference