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:
parent
e86e7344f3
commit
156146fd9a
4 changed files with 112 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue