handling with ease

Wrote api to manage events easier and easier to parse. Added dummy when releasing devices.
This commit is contained in:
Extremesecrecy
2025-07-27 11:58:33 -07:00
parent 42c03a9c19
commit 3576f1c7cf
2 changed files with 136 additions and 80 deletions
+15
View File
@@ -55,6 +55,21 @@ export default class JackServerSettings {
bufferSize = 64;
numberOfBuffers = 3;
/**
* Configure this instance to use the dummy audio device. This mirrors the
* behaviour of the backend JackServerSettings::UseDummyAudioDevice method
* and is used when temporarily releasing ALSA devices.
* Needed when changing devices and when testing new settings with apply button.
*/
useDummyAudioDevice() {
if (this.sampleRate === 0) {
this.sampleRate = 48000;
}
this.valid = true;
this.alsaInputDevice = "__DUMMY_AUDIO__dummy:channels_2";
this.alsaOutputDevice = "__DUMMY_AUDIO__dummy:channels_2";
}
getSummaryText() {
if (!this.valid || !this.alsaInputDevice || !this.alsaOutputDevice) {
return "Not selected";