| 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 | |
| 891 | void 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 | |
| 901 | void 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 | |
| 911 | void 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 | |
| 921 | void SoundSystemOAL::SetVoiceBudgetCounters(int evictedThisFrame, int pausedThisFrame) |
| 922 | { |
| 923 | _evictedThisFrame = evictedThisFrame; |
no test coverage detected