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

Method getDataLength

Engine/source/sfx/sfxCommon.h:309–313  ·  view source on GitHub ↗

Returns the data length in bytes.

Source from the content-addressed store, hash-verified

307
308 /// Returns the data length in bytes.
309 U32 getDataLength( U32 ms ) const
310 {
311 U32 bytes = ( ( (U64)ms * (U64)mSamplesPerSecond ) * (U64)getBytesPerSample() ) / (U64)1000;
312 return bytes;
313 }
314};
315
316

Callers 4

_createBufferMethod · 0.45
SFXAsyncStreamMethod · 0.45
_createBufferMethod · 0.45
_tellMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected