From 737103239cf237347684ae7614409c0ea8b0d5de Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 11 Sep 2019 00:53:11 -0400 Subject: [PATCH] Update readme with instructions to change speaker --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 34a4514a23..a7b9ae1d7b 100644 --- a/README.md +++ b/README.md @@ -57,3 +57,25 @@ Crates to try: - PCM support - 18/16/32/64 bit support + +Hardware +-------- + +Enumerate hardware: + +* `pactl list short sinks` + +The linux headphone jack is named at startup: + +* `speaker-test -t wav -c 6 -D front` + +To change the 'default' speaker, + +``` +pactl list short sinks +pactl set-default-sink 'alsa_output.pci-0000_00_1f.3.analog-stereo' +speaker-test -t wav -c 6 -D default +``` + +This makes the rust code work on Desktop. +