BASS.NET API for the Un4seen BASS Audio LibraryUtilsFixTimespan Method (Double, String)BASS.NET API for the Un4seen BASS Audio Library
Converts a second value as reveived by BASS_ChannelBytes2Seconds(Int32, Int64) to a string representation.

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

public static string FixTimespan(
	double seconds,
	string format
)

Parameters

seconds
Type: SystemDouble
A value representing seconds.
format
Type: SystemString
One of the following constants:
HHMM
HHMMSShours:minutes:seconds, e.g. 00:03:17
MMSSminutes:seconds, e.g. 03:17
MMSSFFminutes:seconds.milliseconds, e.g. 03:17.25
MMSSFFFminutes:seconds.milliseconds, e.g. 03:17.257
MMSSFminutes:seconds.milliseconds, e.g. 03:17.2
HHMMSSFFhours:minutes:seconds.milliseconds, e.g. 00:03:17.25
HHMMSSFFFhours:minutes:seconds.milliseconds, e.g. 00:03:17.257
HHMMSSFhours:minutes:seconds.milliseconds, e.g. 00:03:17.2
SMPTE24hours:minutes:seconds:frames (with 24fps)
SMPTE25hours:minutes:seconds:frames (with 25fps)
SMPTE30hours:minutes:seconds:frames (with 30fps)
SMPTE50hours:minutes:seconds:frames (with 50fps)
SMPTE60hours:minutes:seconds:frames (with 60fps)
all othersWill be converted according to the standard DateTimeFormatInfo pattern as specified in the format parameter.

Return Value

Type: String
The seconds as a string in the given format.
See Also

Reference