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:
MarcZX10 authored and Adrià committed 2026-10-30 16:29:54 +01:00
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