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

Method Source_Remove

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

Source from the content-addressed store, hash-verified

301}
302
303void AudioBackendXAudio2::Source_Remove(uint32 sourceID)
304{
305 ScopeLock lock(XAudio2::Locker);
306 auto aSource = XAudio2::GetSource(sourceID);
307 if (!aSource)
308 return;
309
310 // Free source
311 if (aSource->Voice)
312 {
313 aSource->Voice->DestroyVoice();
314 }
315 aSource->Init();
316}
317
318void AudioBackendXAudio2::Source_VelocityChanged(uint32 sourceID, const Vector3& velocity)
319{

Callers

nothing calls this directly

Calls 2

GetSourceFunction · 0.85
InitMethod · 0.45

Tested by

no test coverage detected