Add audio IPC options

AudioService: add a few functions to AudioService
IPCManager: Add 4 Audio IPC calls
README: Add information about new IPC calls
This commit is contained in:
Ly-sec 2025-08-28 17:48:02 +02:00
parent e86e7344f3
commit 156146fd9a
4 changed files with 112 additions and 0 deletions

View file

@ -99,6 +99,24 @@ Item {
}
}
IpcHandler {
target: "volume"
function increase() {
AudioService.increaseVolume()
}
function decrease() {
AudioService.decreaseVolume()
}
function muteOutput() {
AudioService.setMuted(!AudioService.muted)
}
function muteInput() {
if (AudioService.source?.ready && AudioService.source?.audio) {
AudioService.source.audio.muted = !AudioService.source.audio.muted
}
}
}
IpcHandler {
target: "powerPanel"
function toggle() {