Copyright © 2008-2019 MultiMedia Soft

FromMsToSamples method

Previous pageReturn to chapter overviewNext page

Remarks

 

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

 

 

Syntax

 

[Visual Basic]

control.FromMsToSamples (

nTimeInMs as long

) as long


 

[C++]

long control.FromMsToSamples (

long nTimeinMs

);


 

 

Parameter

Description

 

 

nTimeinMs

Time, expressed in milliseconds, 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 samples