Copyright © 2006-2019 MultiMedia Soft

RecordedSound.GetDuration method

Previous pageReturn to chapter overviewNext page

Remarks

 

Gets the duration, expressed in milliseconds, of the last recorded sound.

 

A formatted string of the sound duration can be retrieved using the RecordedSound.GetFormattedDuration method.

 

For further details about recorded sound methods refer to the RecordedSound object section.

For further details see the How to perform a recording session section.

 

 

Syntax

 

[Visual Basic]

control.RecordedSound.GetDuration (

) as long


 

[C++]

long control.RecordedSound.GetDuration (

);


 

 

Return value

 

Value

Meaning

 

 

Value > 0

The sound duration in milliseconds.

This value is limited to a maximum of 32 bits; for larger coverage its recommended using the RecordedSound.GetDurationDouble method.

Negative value

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