MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Play

Method Play

engine/PoseidonOpenAL/WaveOAL.cpp:851–862  ·  view source on GitHub ↗

Deferred play: marks wave for playing on next Commit()

Source from the content-addressed store, hash-verified

849 alSourcef(_alSource, AL_ROLLOFF_FACTOR, 1.f);
850 }
851 else
852 {
853 alSourcei(_alSource, AL_SOURCE_RELATIVE, AL_TRUE);
854 alSource3f(_alSource, AL_POSITION, 0.f, 0.f, 0.f);
855 alSource3f(_alSource, AL_VELOCITY, 0.f, 0.f, 0.f);
856 }
857}
858
859// Deferred play: marks wave for playing on next Commit()
860void WaveOAL::Play()
861{
862 if (_queued)
863 return; // Waiting for predecessor in Queue() chain — see WaveOAL.hpp
864 if (_state.terminated)
865 return;

Callers 6

PreviewAdvanceFunction · 0.45
StartEAXPreviewMethod · 0.45
StartCategoryPreviewMethod · 0.45
StartDevicePreviewMethod · 0.45
ProcessPreviewMethod · 0.45
IsTerminatedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected