Copyright © 2008-2018 MultiMedia Soft

FromSamplesToMs method

Previous pageReturn to chapter overviewNext page

Remarks

 

Given an amount of time in samples obtains the corresponding number of milliseconds.

 

 

Syntax

 

[Visual Basic]

control.FromSamplesToMs (

nTimeInSamples as long

) as long


 

[C++]

long control.FromSamplesToMs (

long nTimeInSamples

);


 

 

Parameter

Description

 

 

nTimeinMs

Time, expressed in samples, that needs to be converted

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to see the error code meaning

Value >= 0

Time expressed in milliseconds