Compare commits
2
Commits
575b70d4ba
...
ddd3fee887
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddd3fee887 | ||
|
|
b6a59f6563 |
@@ -15,3 +15,6 @@ targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-apple-da
|
||||
install-path = "CARGO_HOME"
|
||||
# Whether to install an updater program
|
||||
install-updater = true
|
||||
|
||||
[dist.dependencies.apt]
|
||||
libasound2-dev = "*"
|
||||
|
||||
+4
-2
@@ -194,9 +194,11 @@ impl AudioVisualizer {
|
||||
{
|
||||
if let Ok(devices) = host.devices() {
|
||||
for dev in devices {
|
||||
if let Ok(name) = dev.name() {
|
||||
// Monitor devices mirror system output under PulseAudio/PipeWire
|
||||
if let Ok(desc) = dev.description() {
|
||||
let name = desc.to_string();
|
||||
|
||||
if name.contains("monitor") {
|
||||
// Monitor devices mirror system output under PulseAudio/PipeWire
|
||||
if let Ok(config) = dev.default_input_config() {
|
||||
return Ok((dev, config.into()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user