aboutsummaryrefslogtreecommitdiff
path: root/tests/fixtures
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-26 17:08:19 -0600
committerCraig Jennings <c@cjennings.net>2026-02-26 17:08:19 -0600
commit9567fc22efb06399b8f814af88c4fb383cd3c30b (patch)
tree02ade6fb6ae9981d44a7a337c316aa0d89cf59b3 /tests/fixtures
parentd16fec3013797df2b84f2d8881ee42ad1ceef384 (diff)
downloaddotemacs-9567fc22efb06399b8f814af88c4fb383cd3c30b.tar.gz
dotemacs-9567fc22efb06399b8f814af88c4fb383cd3c30b.zip
feat(recording): validate system audio device before recording
Add pre-recording validation that catches stale or drifted system audio devices before they cause silent recordings. When the default audio output changes (Bluetooth reconnect, device switch) between setup and recording, the monitor device is auto-updated. Warns if no audio is currently playing through the monitored sink. Co-Authored-By: Craig Jennings <c@cjennings.net>
Diffstat (limited to 'tests/fixtures')
-rw-r--r--tests/fixtures/pactl-sink-inputs-active.txt18
-rw-r--r--tests/fixtures/pactl-sink-inputs-different-sink.txt18
-rw-r--r--tests/fixtures/pactl-sink-inputs-empty.txt1
3 files changed, 37 insertions, 0 deletions
diff --git a/tests/fixtures/pactl-sink-inputs-active.txt b/tests/fixtures/pactl-sink-inputs-active.txt
new file mode 100644
index 000000000..d06589e3c
--- /dev/null
+++ b/tests/fixtures/pactl-sink-inputs-active.txt
@@ -0,0 +1,18 @@
+Sink Input #42
+ Driver: PipeWire
+ Owner Module: 4294967295
+ Client: 51
+ Sink: 65
+ Sample Specification: float32le 2ch 48000Hz
+ Channel Map: front-left,front-right
+ Format: pcm, format.sample_format = "\"float32le\"" format.rate = "48000" format.channels = "2"
+ Corked: no
+ Mute: no
+ Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
+ balance 0.00
+ Buffer Latency: 0 usec
+ Sink Latency: 0 usec
+ Resample method: PipeWire
+ Properties:
+ media.name = "Playback"
+ application.name = "Firefox"
diff --git a/tests/fixtures/pactl-sink-inputs-different-sink.txt b/tests/fixtures/pactl-sink-inputs-different-sink.txt
new file mode 100644
index 000000000..859010ed7
--- /dev/null
+++ b/tests/fixtures/pactl-sink-inputs-different-sink.txt
@@ -0,0 +1,18 @@
+Sink Input #42
+ Driver: PipeWire
+ Owner Module: 4294967295
+ Client: 51
+ Sink: 73
+ Sample Specification: float32le 2ch 48000Hz
+ Channel Map: front-left,front-right
+ Format: pcm, format.sample_format = "\"float32le\"" format.rate = "48000" format.channels = "2"
+ Corked: no
+ Mute: no
+ Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
+ balance 0.00
+ Buffer Latency: 0 usec
+ Sink Latency: 0 usec
+ Resample method: PipeWire
+ Properties:
+ media.name = "Playback"
+ application.name = "Firefox"
diff --git a/tests/fixtures/pactl-sink-inputs-empty.txt b/tests/fixtures/pactl-sink-inputs-empty.txt
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/tests/fixtures/pactl-sink-inputs-empty.txt
@@ -0,0 +1 @@
+