Git Product home page Git Product logo

Comments (17)

 avatar commented on May 19, 2024

Have you tried redoing this guide?

Try setting your output in the configuration file (~/.config/cava/config) or running cava as superuser.

from cava.

HalosGhost avatar HalosGhost commented on May 19, 2024

I did follow the guide for setting up pulseaudio, but I did not create a configuration file. I will give that a try tomorrow. However, running cava as root led to the segfault and the resulting coredump I mentioned.

from cava.

karlstav avatar karlstav commented on May 19, 2024

@HalosGhost did you set up the alsa loopback interface? Cava is denpendent on it to work. Pulseaudio is only used to direct audio to the alsa loopback interface and your normal audio interface at the same time.

Cava defaults to using alsa device: hw:1:1 which should hopefully be your loopback interface. But in your case it doesn't look like hw:1:1 is anything. Hence the error message Invalid value for card

from cava.

HalosGhost avatar HalosGhost commented on May 19, 2024

I did not setup the loopback device as I did not realize it was necessary (I was just looking at the Pulseaudio (easy) section not realizing it was a subsection of Straight from Output. I will give this a try.

Upon loading up the ALSA loopback device, cava now runs without segfaulting or erroring out. However, the bars do not react to anything when I play music using mpv. At first, I thought it was that I did not have pulseaudio setup to default to the combined sink, but even after manually doing so, there is no movement in the bars.

from cava.

karlstav avatar karlstav commented on May 19, 2024

@HalosGhost check the volume levels. both the loopback and the combined sink should be set to maximum, if there is a volume control in mpv it should probably also be at 100%

from cava.

hartwork avatar hartwork commented on May 19, 2024

I am stuck on the same road. I have

  • Appended "load-module module-combine-sink" to /etc/pulse/default.pa of PulseAudio 6.0
  • Restarted pulseaudio (and found module-combine-sink.so in the list of files in htop)
  • Activated Simultaneous output using paprefs
  • Switched Audacious' playback to Simultaneous output using pavucontrol, volume at 100%
  • Run cava -d hw:0

The bars are not jumping at all. Any Ideas?

What I am wondering:

  • The order in /etc/pulse/default.pa seems to matter. Where should the module-combine-sink line go? Before or after something specific?
  • Is the paprefs step a replacement to adding module-combine-sink to the config or do they go together?
  • Does "hw:0" make sense? How can I list available ALSA devices in hw notation?

from cava.

williamg avatar williamg commented on May 19, 2024

I'm having the same issue as hartwork. Cava runs, loopback bars are moving in pavucontrol, but no bars in cava.

(I would make it clearer in the README that the Pulseaudio (easy) section is a subsection of Straight From Output that wasn't clear to me either)

from cava.

williamg avatar williamg commented on May 19, 2024

Okay, so it seems to definitely be a rendering issue as opposed to a functionality issue.

I run compton on my system and when the terminal running cava is transparent I can make out some artifacts on that terminal that are definitely bars, and I can see them moving with my music and not moving when I mute it. So I tried disabling compton, but that didn't fix it. Not really sure where to go from here, but maybe someone else can.

EDIT: Aha! For me my font was the problem. I was using Inconsolata for Powerline, witching to just use Inconsolata fixed it for me!

from cava.

karlstav avatar karlstav commented on May 19, 2024

@hartwork loading the simultaneous output via paprefs is the same as adding the module-combine-sink in the config file. If you chose to add the module-combine-sink to the config file, add it to the bottom. It should definitely be added after all other sinks.

Use aplay -l to list all devices, cava should use your loopback device. Have you created it?

from cava.

hartwork avatar hartwork commented on May 19, 2024

@hartwork loading the simultaneous output via paprefs is the same as adding the module-combine-sink in the config file. If you chose to add the module-combine-sink to the config file, add it to the bottom. It should definitely be added after all other sinks.

I see, thanks.

Use aplay -l to list all devices, cava should use your loopback device. Have you created it?

I missed that step. Creating the loop devices makes it all work now, nice!

from cava.

karlstav avatar karlstav commented on May 19, 2024

closing this, hope the readme is clearer now

from cava.

nrhinehart avatar nrhinehart commented on May 19, 2024

I followed the same steps as @hartwork , but it also isn't working for me either. I did create the loopback by following the ALSA readme

Here is the output of arecord -l after running in a separate terminal (looks like cava latched onto a 4,0 subdevice correctly?)
./cava -d hw:4,0

dev/cava$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC280 Analog [ALC280 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: C930e [Logitech Webcam C930e], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: SoundBar [Dell AC511 USB SoundBar], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 4: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
Subdevices: 7/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 4: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7

The bars are completely stationary and zeroed. My setup: running Mopidy to play Spotify, ncmpcpp as mopidy client (although I don't think this is relevant)

Two more things:
when I run after turning debug mode on, I get this output, regardless of whether or not I'm playing music:

short read: xxx 257 frames

There was a compilation error when trying to build in debug mode...
I had to change this line
printf("got format: %d and rate %d\n", format, rate);

to this

printf("got format: %d and rate %d\n", audio.format, audio.rate);

from cava.

karlstav avatar karlstav commented on May 19, 2024

@nrhine1 You must run it with the number 1 device like so ./cava -d hw:4,1. If you pull the latest version you should be able to run it without having to specify device.

Thanks for the feedback on the debug mode. I haven't really maintained it recently. I have to remove it or improve it...

from cava.

nrhinehart avatar nrhinehart commented on May 19, 2024

Yeah, I've tried almost all combinations already. That didn't work either. I have the latest version

from cava.

karlstav avatar karlstav commented on May 19, 2024

try the following (if you have not allready):

  • create the "simultaneous output" with paprefs
  • set the volume level on the loopback and the simultaneous output to 100%

playing audio through the simultaneous output should work now. If you need to adjust the volume you must select your speakers before decreasing the volume level and then select the simultaneous output again.

from cava.

nrhinehart avatar nrhinehart commented on May 19, 2024

NVM figured it out. Had to choose one of the simultaneous output interfaces in sound settings

from cava.

karlstav avatar karlstav commented on May 19, 2024

Great ;)

from cava.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.