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

Method getBuffer

Engine/source/sfx/sfxProfile.cpp:298–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296//-----------------------------------------------------------------------------
297
298SFXBuffer* SFXProfile::getBuffer()
299{
300 if ( mDescription->mIsStreaming )
301 {
302 // Streaming requires unique buffers per
303 // source, so this creates a new buffer.
304 if ( SFX )
305 return _createBuffer();
306
307 return NULL;
308 }
309
310 if ( mBuffer.isNull() )
311 _preloadBuffer();
312
313 return mBuffer;
314}
315
316//-----------------------------------------------------------------------------
317

Callers 12

processRawPacketMethod · 0.45
NetDelayEventMethod · 0.45
sendPacketMethod · 0.45
startDemoRecordMethod · 0.45
_createMethod · 0.45
_reloadBufferMethod · 0.45
_allocVoiceMethod · 0.45
_update4LightConstsMethod · 0.45
_allocBufferMethod · 0.45
saveDatablockCacheMethod · 0.45
loadSoundMethod · 0.45
getDataMethod · 0.45

Calls 1

isNullMethod · 0.45

Tested by

no test coverage detected