Copyright © 2006-2018 MultiMedia Soft

RecordedSound.GetDurationDouble method

Previous pageReturn to chapter overviewNext page



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.





[Visual Basic]

control.RecordedSound.GetDurationDouble (

) as double



double control.RecordedSound.GetDurationDouble (




Return value






Value > 0

The sound duration in milliseconds

Negative value

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