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

Method GetCounters

engine/PoseidonOpenAL/SoundSystemOAL.cpp:883–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881 LOG_INFO(Audio, "SwitchOutputDevice: switched to '{}'",
882 _selectedDevice.empty() ? "<default>" : _selectedDevice.c_str());
883
884 // Resume the device-picker preview on the new context; the sample
885 // continues from where the old context stopped.
886 if (wasDevicePreviewing)
887 StartDevicePreview();
888 return true;
889}
890
891void SoundSystemOAL::SetCDVolume(float v)
892{
893 if (v < 0.f)
894 v = 0.f;
895 if (v > 10.f)
896 v = 10.f;
897 _cdVolume = v;
898 UpdateMixer();
899}
900
901void SoundSystemOAL::SetWaveVolume(float v)
902{
903 if (v < 0.f)
904 v = 0.f;
905 if (v > 10.f)
906 v = 10.f;
907 _waveVolume = v;
908 UpdateMixer();
909}
910
911void SoundSystemOAL::SetSpeechVolume(float v)
912{
913 if (v < 0.f)
914 v = 0.f;
915 if (v > 10.f)
916 v = 10.f;
917 _speechVolume = v;
918 UpdateMixer();
919}
920
921void SoundSystemOAL::SetVoiceBudgetCounters(int evictedThisFrame, int pausedThisFrame)
922{
923 _evictedThisFrame = evictedThisFrame;

Callers 1

Calls 3

sizeMethod · 0.80
StateMethod · 0.45
Get3DMethod · 0.45

Tested by

no test coverage detected