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

Method Unload

engine/PoseidonOpenAL/WaveOAL.cpp:744–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742 {
743 return;
744 }
745
746 LOG_DEBUG(Audio, "PERF: WaveOAL::Load {} ({} bytes PCM) took {:.2f}ms", static_cast<const char*>(Name()),
747 _state.size, ::Poseidon::Dev::Perf::ElapsedMs(_perfLoadStart));
748 ::Poseidon::Dev::Perf::EmitTraceEventAssetNum(Poseidon::Foundation::LogCategory::Audio, "WaveOAL::Load", _perfLoadStart,
749 static_cast<const char*>(Name()), "bytes",
750 static_cast<long long>(_state.size));
751}
752
753void WaveOAL::Unload()
754{
755 if (!_loaded)
756 return;
757
758 if (_alSource)
759 {
760 alSourceStop(_alSource);
761 alDeleteSources(1, &_alSource);
762 _alSource = 0;
763 }
764 if (_alBuffer)
765 {

Callers 1

SwitchOutputDeviceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected