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

Method process

Engine/modules/Verve/Torque3D/VSoundEffect.cpp:326–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void VSoundEffectNetEvent::process( NetConnection *pConnection )
327{
328 // Valid?
329 if ( !mProfile )
330 {
331 return;
332 }
333
334 SFXSound *source = NULL;
335 if ( mIs3D )
336 {
337 // Play 3D Sound.
338 source = ( SFXSound* )SFX->playOnce( mProfile, &mTransform );
339 }
340 else
341 {
342 // Play 2D Sound.
343 source = ( SFXSound* )SFX->playOnce( mProfile );
344 }
345
346 if ( source )
347 {
348 // Set Position.
349 source->setPosition( mPosition );
350
351 // Set Pitch.
352 source->setPitch( mPitch );
353 }
354}

Callers

nothing calls this directly

Calls 3

playOnceMethod · 0.45
setPositionMethod · 0.45
setPitchMethod · 0.45

Tested by

no test coverage detected