Copyright © 2001-2018 MultiMedia Soft

GetFormattedSoundFileDuration method

Previous pageReturn to chapter overviewNext page

Remarks

 

Returns a formatted string, containing the duration of the given sound file, using the following format [hh:mm:ss:ms(3)] in which hh is for hours, mm is for minutes, ss is for seconds and ms(3) are three characters representing the milliseconds. For example [04:34:200] indicates a song during 0 hours (the hours number is automatically omitted if 0), 4 minutes, 34 seconds and 200 milliseconds.

Accepted formats are the same of the LoadSound method.

 

Syntax

 

[Visual Basic]

control.GetFormattedSoundFileDuration (

strPathame as String

) as Long


 

[C++]

long control.GetFormattedSoundFileDuration (

LPCTSTR strPathame

);


 

 

Parameter

Description

 

 

strPathname

String containing the absolute pathname of the song file to check.

 

 

Return value

 

Value

Meaning

 

 

Empty string

An error occurred (see the LastError property for further error details)

Valid string

The formatted song duration