MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getSampleCount

Method getSampleCount

Engine/source/sfx/sfxCommon.h:303–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301
302 ///
303 U32 getSampleCount( U32 ms ) const
304 {
305 return U64( mSamplesPerSecond ) * U64( ms ) / U64( 1000 );
306 }
307
308 /// Returns the data length in bytes.
309 U32 getDataLength( U32 ms ) const

Callers 7

getPositionMethod · 0.45
setPositionMethod · 0.45
_allocVoiceMethod · 0.45
setPositionMethod · 0.45
getNumSamplesMethod · 0.45
updateMethod · 0.45
_initCurvesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected