MPfm: Music Player for Musicians - Developer Documentation - 0.6.0.0
ToTimeString Method (positionBytes, bitsPerSample, channelCount, sampleRate)
NamespacesMPfm.SoundConvertAudioToTimeString(Int64, UInt32, Int32, UInt32)
Converts a position in bytes to time string. Requires several parameters to work.
Declaration Syntax
C#Visual Basic
public static string ToTimeString(
	long positionBytes,
	uint bitsPerSample,
	int channelCount,
	uint sampleRate
)
Public Shared Function ToTimeString ( _
	positionBytes As Long, _
	bitsPerSample As UInteger, _
	channelCount As Integer, _
	sampleRate As UInteger _
) As String
Parameters
positionBytes (Int64)
Position (in bytes)
bitsPerSample (UInt32)
Bits per sample (ex: 16 for 16-bit)
channelCount (Int32)
Channel count (ex: 2 for stereo)
sampleRate (UInt32)
Sample rate (ex: 44100 for 44100Hz)
Return Value
Position in time string (00:00.000)

Assembly: MPfm.Sound (Module: MPfm.Sound) Version: 0.5.3.0 (0.5.3.0)