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

Method createSourceFromStream

Engine/source/sfx/sfxSystem.cpp:600–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598//-----------------------------------------------------------------------------
599
600SFXSound* SFXSystem::createSourceFromStream( const ThreadSafeRef< SFXStream >& stream,
601 SFXDescription* description )
602{
603 AssertFatal( mDevice, "SFXSystem::createSourceFromStream() - no device initialized!" );
604
605 // We sometimes get null values from script... fail in that case.
606
607 if( !stream || !description )
608 return NULL;
609
610 // Create the sound.
611
612 SFXSound* sound = SFXSound::_create( mDevice, stream, description );
613 if( !sound )
614 return NULL;
615
616 return sound;
617}
618
619//-----------------------------------------------------------------------------
620

Callers 1

_initAudioMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected