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

Method SFXAsyncQueue

Engine/source/sfx/sfxInternal.h:247–255  ·  view source on GitHub ↗

Construct a new sound queue that pushes sound packets to "buffer" in sync to the playback of "voice". @param voice The SFXVoice to synchronize to. @param buffer The sound buffer to push sound packets to.

Source from the content-addressed store, hash-verified

245 /// @param voice The SFXVoice to synchronize to.
246 /// @param buffer The sound buffer to push sound packets to.
247 SFXAsyncQueue( SFXVoice* voice,
248 SFXBuffer* buffer,
249 bool looping = false )
250 : Parent( DEFAULT_STREAM_QUEUE_LENGTH,
251 voice,
252 buffer,
253 ( looping
254 ? 0
255 : ( buffer->getDuration() * ( buffer->getFormat().getSamplesPerSecond() / 1000 ) ) - voice->mOffset ) ) {}
256};
257
258//--------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

getDurationMethod · 0.45
getSamplesPerSecondMethod · 0.45
getFormatMethod · 0.45

Tested by

no test coverage detected