MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Source_Play

Method Source_Play

Source/Engine/Audio/XAudio2/AudioBackendXAudio2.cpp:436–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436void AudioBackendXAudio2::Source_Play(uint32 sourceID)
437{
438 auto aSource = XAudio2::GetSource(sourceID);
439 if (aSource && aSource->Voice && !aSource->IsPlaying)
440 {
441 // Play
442 const HRESULT hr = aSource->Voice->Start();
443 XAUDIO2_CHECK_ERROR(Start);
444 aSource->IsPlaying = true;
445 }
446}
447
448void AudioBackendXAudio2::Source_Pause(uint32 sourceID)
449{

Callers

nothing calls this directly

Calls 2

GetSourceFunction · 0.85
StartMethod · 0.45

Tested by

no test coverage detected