Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On PipeWire, getting "snd_aloop" error message unless capture method is explicitely set to pipewire/pulse #518

Closed
FeralHedgehog opened this issue Aug 8, 2023 · 5 comments

Comments

@FeralHedgehog
Copy link

When/where was the bug introduced?

  • Are you using cava from a package repository, like AUR?
    Yes - using the cava package from the AUR (also tested with cava-git).
  • If so, check out the master branch here, is your issue already resolved?
    No.
  • Try using git bisect to find out where the bug was introduced.
    Bug introduced in pipewire support #493

Describe the bug
After upgrading to v0.9.0 and running cava the following error appears:

Linux kernel module "snd_aloop" does not seem to  be loaded.
Maybe run "sudo modprobe snd_aloop".

However, everything works as expected when setting the method setting in the config to either pipewire or pulse.
I noticed that setting it to alsa throws the same error, so maybe the capture method detection logic/order is broken?

To Reproduce
Steps to reproduce the behavior:

  1. Leave method config parameter unset.
  2. Run cava.
  3. See error.

Expected behavior
Expected cava to run normally without having to configure the capture method.

Desktop (please complete the following information):

  • OS: Arch Linux
  • Audio Server: PipeWire 0.3.77

Terminal emulator

  • Name: alacritty
  • Version: 0.12.2 (9d9982df)
@andro404-MC
Copy link

Uncommenting the input source from the config fixed it for me, its:

method = pipewire
source = auto

@CodeByMeow
Copy link

Uncommenting the input source from the config fixed it for me, its:

method = pipewire
source = auto

It's fixed, tks.

@FeralHedgehog
Copy link
Author

Uncommenting the input source from the config fixed it for me, its:

method = pipewire
source = auto

Yeah but it worked in older versions without having to explicitly set it, and the config comment/documentation says that it should default to pulse and pipewire before the problematic alsa:

# Audio capturing method. Possible methods are: 'pulse', 'alsa', 'fifo', 'sndio' or 'shmem'
# Defaults to 'pulse', 'pipewire', 'alsa' or 'fifo', in that order, dependent on what support cava was built with.

@karlstav
Copy link
Owner

thanks for the bug report @FeralHedgehog!

actually two bugs are at play here:

  1. pipewire was never added to the list of default inputs
  2. the mechanism for selecting default input confused the input enum with a simple counter

@FeralHedgehog
Copy link
Author

Everything's working after b05f829.
Thank you for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants