From 7ae6647b62afa452ee0eae60c7512a1fc6eedbff Mon Sep 17 00:00:00 2001
From: Extremesecrecy <10959169+extremesecrecy@users.noreply.github.com>
Date: Fri, 25 Jul 2025 11:19:45 -0700
Subject: [PATCH] Device Info on configuration
Display device info only on configuration.
---
vite/src/pipedal/JackHostStatus.tsx | 42 +++++++++++++++++++
vite/src/pipedal/JackServerSettingsDialog.tsx | 2 +-
2 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/vite/src/pipedal/JackHostStatus.tsx b/vite/src/pipedal/JackHostStatus.tsx
index 1f5c1f5..67239e9 100644
--- a/vite/src/pipedal/JackHostStatus.tsx
+++ b/vite/src/pipedal/JackHostStatus.tsx
@@ -189,4 +189,46 @@ export default class JackHostStatus {
}
}
+ static getDisplayViewNoCpu(label: string, status?: JackHostStatus): React.ReactNode {
+ if (!status) {
+ return (
+ {label}
+
+
);
+ }
+ if (status.restarting) {
+ return (
+
+ {label}
+
+ Restarting
+
+
+ );
+
+ } else if (!status.active) {
+ return (
+
+ {label}
+
+
+ {status.errorMessage === "" ? "Audio\u00A0Stopped" : status.errorMessage}
+
+
+ );
+ } else {
+ let underrunError = status.msSinceLastUnderrun < 15 * 1000;
+ return (
+
+ {label}
+
+
+ XRuns: {status.underruns + ""}
+
+
+
+ );
+ }
+ }
+
};
\ No newline at end of file
diff --git a/vite/src/pipedal/JackServerSettingsDialog.tsx b/vite/src/pipedal/JackServerSettingsDialog.tsx
index 83bce66..2a606f1 100644
--- a/vite/src/pipedal/JackServerSettingsDialog.tsx
+++ b/vite/src/pipedal/JackServerSettingsDialog.tsx
@@ -738,7 +738,7 @@ const JackServerSettingsDialog = withStyles(
Latency: {this.state.latencyText}
- {JackHostStatus.getDisplayView("", this.state.jackStatus)}
+ {JackHostStatus.getDisplayViewNoCpu("", this.state.jackStatus)}
{!this.state.okEnabled && (