mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
feat(libSceAudioOut): add a mute toggle to the host volume
The muted flag is separate from the volume, so unmuting brings back the volume that was set before.
This commit is contained in:
1 parent
2c0f6a8174
commit
67cb5a3301
1 file changed
+7
@@ -7,6 +7,12 @@ public:
|
||||
static constexpr int VolumeStep = 5;
|
||||
|
||||
int Volume() const { return volume; }
|
||||
bool Muted() const { return muted; }
|
||||
|
||||
bool ToggleMute() {
|
||||
muted = !muted;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool VolumeUp() {
|
||||
if (volume >= MaxVolume) return false;
|
||||
@@ -22,6 +28,7 @@ public:
|
||||
|
||||
private:
|
||||
int volume = MaxVolume;
|
||||
bool muted = false;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user