Comments (17)
Have you tried redoing this guide?
Try setting your output in the configuration file (~/.config/cava/config
) or running cava as superuser.
from cava.
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.
@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.
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.
@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.
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.
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.
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.
@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 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.
closing this, hope the readme is clearer now
from cava.
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.
@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.
Yeah, I've tried almost all combinations already. That didn't work either. I have the latest version
from cava.
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.
NVM figured it out. Had to choose one of the simultaneous output interfaces in sound settings
from cava.
Great ;)
from cava.
Related Issues (20)
- Pipewire support fails to crossbuild because of hardcoded include flags HOT 4
- glew.dll not found HOT 2
- cava 9.x does not react with sensitivity = 0 HOT 12
- Better error message HOT 1
- Desktop bottom background Spectrum Analizer HOT 1
- reload cava with a signal or have transparent background HOT 4
- how to use and change shaders ? HOT 1
- Help choosing my sound card HOT 4
- Cava no bars on arch linux HOT 4
- The interface for audio playback is not always recognized HOT 4
- Question regarding right padding HOT 4
- Question about command line HOT 3
- No moving bars for cava with alsa HOT 9
- console blanking behavior after stopping cava HOT 2
- Keyboard commands not working HOT 3
- Not working on FreeBSD 14.0-p2 with sndio HOT 12
- OSS input backend and general improved FreeBSD support HOT 6
- `can't load config client.conf` and crashes HOT 3
- Another raw output method that writes bars to output using "▁▂▃▄▅▆▇█ " HOT 6
- [WORKAROUND FOUND] Cava and Cava-GIT from the AUR is not visualizing audio. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cava.