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

Method getPosition

Engine/source/sfx/media/sfxVorbisStream.cpp:259–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259U32 SFXVorbisStream::getPosition() const
260{
261 AssertFatal( mVF, "SFXVorbisStream::getPosition() - Stream is closed!" );
262 return U32( ov_pcm_tell( mVF ) ) * mFormat.getBytesPerSample();
263}
264
265void SFXVorbisStream::setPosition( U32 offset )
266{

Callers 3

_read_funcMethod · 0.45
_seek_funcMethod · 0.45
_tell_funcMethod · 0.45

Calls 3

ov_pcm_tellFunction · 0.85
getBytesPerSampleMethod · 0.80
U32Enum · 0.50

Tested by

no test coverage detected