2 Commits
2 changed files with 7 additions and 2 deletions
+3
View File
@@ -15,3 +15,6 @@ targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-apple-da
install-path = "CARGO_HOME" install-path = "CARGO_HOME"
# Whether to install an updater program # Whether to install an updater program
install-updater = true install-updater = true
[dist.dependencies.apt]
libasound2-dev = "*"
+4 -2
View File
@@ -194,9 +194,11 @@ impl AudioVisualizer {
{ {
if let Ok(devices) = host.devices() { if let Ok(devices) = host.devices() {
for dev in devices { for dev in devices {
if let Ok(name) = dev.name() { if let Ok(desc) = dev.description() {
// Monitor devices mirror system output under PulseAudio/PipeWire let name = desc.to_string();
if name.contains("monitor") { if name.contains("monitor") {
// Monitor devices mirror system output under PulseAudio/PipeWire
if let Ok(config) = dev.default_input_config() { if let Ok(config) = dev.default_input_config() {
return Ok((dev, config.into())); return Ok((dev, config.into()));
} }