MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / addSoundSource

Method addSoundSource

Engine/source/T3D/shapeImage.cpp:1443–1455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1441}
1442
1443void ShapeBase::MountedImage::addSoundSource(SFXSource* source)
1444{
1445 if(source != NULL)
1446 {
1447 if(dataBlock->maxConcurrentSounds > 0 && mSoundSources.size() > dataBlock->maxConcurrentSounds)
1448 {
1449 SFX_DELETE(mSoundSources.first());
1450 mSoundSources.pop_front();
1451 }
1452 source->play();
1453 mSoundSources.push_back(source);
1454 }
1455}
1456
1457void ShapeBase::MountedImage::updateSoundSources( const MatrixF &renderTransform )
1458{

Callers 1

setImageStateMethod · 0.80

Calls 5

firstMethod · 0.80
sizeMethod · 0.45
pop_frontMethod · 0.45
playMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected