karlstav / cava

Cross-platform Audio Visualizer
MIT License
3.92k stars 225 forks source link

The interface for audio playback is not always recognized #530

Closed 0a00 closed 9 months ago

0a00 commented 9 months ago

This is my WPCTL Status.。。。。, I have tried various interfaces but cannot correctly recognize the interface for playing audio unless I manually select loopback as the audio playback interface. However, if I choose this computer and there is no sound, what should I do? This is my device information。。。thanks thanks ❯ wpctl status PipeWire 'pipewire-0' [0.3.80, fixmin@archlinux, cookie:2099046201] └─ Clients:

  1. xdg-desktop-portal [0.3.80, fixmin@archlinux, pid:3551]
  2. xdg-desktop-portal-hyprland [0.3.80, fixmin@archlinux, pid:3559]
  3. WirePlumber [0.3.80, fixmin@archlinux, pid:3466]
  4. WirePlumber [export] [0.3.80, fixmin@archlinux, pid:3466]
  5. pipewire [0.3.80, fixmin@archlinux, pid:3486]
  6. waybar [0.3.80, fixmin@archlinux, pid:3310]
  7. Chromium input [0.3.80, fixmin@archlinux, pid:3942]
  8. Chromium [0.3.80, fixmin@archlinux, pid:3942]
    1. wpctl [0.3.80, fixmin@archlinux, pid:21558]

Audio ├─ Devices: │ 47. Renoir Radeon High Definition Audio Controller [alsa] │ 48. Family 17h/19h HD Audio Controller [alsa] │ 82. Loopback [alsa] │ ├─ Sinks: │ 101. Family 17h/19h HD Audio Controller Speaker + Headphones [vol: 0.40] │ 115. Loopback Analog Stereo [vol: 0.64] │ ├─ Sink endpoints: │ ├─ Sources: │ 88. Family 17h/19h HD Audio Controller Headphones Stereo Microphone [vol: 1.00] │ 106. Family 17h/19h HD Audio Controller Digital Microphone [vol: 0.50] │ 121. Loopback Analog Surround 7.1 [vol: 1.00] │ ├─ Source endpoints: │ └─ Streams:

  1. Chromium
    1. output_FL > ALC295 Analog:playback_FL [active]
    2. output_FR > ALC295 Analog:playback_FR [active]

Video ├─ Devices: │ 43. HD WebCam: HD WebCam [libcamera] │ 44. HD WebCam [v4l2] │ 45. HD WebCam [v4l2] │ 46. Dummy video device (0x0000) [v4l2] │ ├─ Sinks: │ ├─ Sink endpoints: │ ├─ Sources: │ 49. Built-in Front Camera │ 51. HD WebCam (V4L2) │ * 53. Dummy video device (0x0000) (V4L2) │ ├─ Source endpoints: │ └─ Streams:

Settings └─ Default Configured Node Names:

  1. Audio/Sink alsa_output.pci-0000_03_00.6.HiFihw_Generic_1sink
  2. Audio/Source alsa_input.pci-0000_03_00.6.HiFi__hw_acp__source
karlstav commented 9 months ago

pipewire should work out of the box if you just leave cava unconfigured. (it should be default in latest cava)

your 101. Family 17h/19h HD Audio Controller Speaker + Headphones [vol: 0.40] looks like your default sink and cava should by default also visualize whatever is coming out from there.

if you have some older version of cava it might be trying to use alsa directly. what is the output of cava -v?

0a00 commented 9 months ago

❯ cava -v cava 0.9.0

The arch repository used should be the latest version, and I am not sure if it is a problem with my audio service configuration or something else. I also attempted to modify the configuration file.

As shown in the figure, when I selected the playback to Loopback Analog Stereo, CAVA worked normally, but as a result, the computer lost its sound,

图片 图片

karlstav commented 9 months ago

hi @0a00

0.9.0 is not the latest version

there is a bug in 0.9.0 where this would happen. It is described here #518. This is fixed in 0.9.1. Please make the arch package maintainer upgrade to 0.9.1

0a00 commented 9 months ago

The update to the new version is working properly. Thank you