Rahix / visualizer2

OpenGL Audio Visualizers in Rust
GNU General Public License v3.0
97 stars 6 forks source link

How to run live mode #5

Closed e-tornike closed 1 year ago

e-tornike commented 1 year ago

Hey there, how would I run the most basic live mode configuration with pulseaudio input?

Rahix commented 1 year ago

Not sure what your question is, exactly? To run e.g. the noambition visualizer, just do

cd noambition/
cargo run --release

this will use cpal by default:

https://github.com/Rahix/visualizer2/blob/512e02ebe092ea2e87655fe22f925d0f27e5f0c3/noambition/visualizer.toml#L6

cpal uses ALSA and usually pulseaudio provides an ALSA compatibility layer so your audio will be recorded from pulseaudio.

You may need to use pavucontrol or another tool to hook up the visualizer to the monitor of your audio output. Or connect it to the correct microphone, if you want to visualize music played from outside sources.

e-tornike commented 1 year ago

I see. It works with the input from the microphone but not from audio played by the system itself.

Rahix commented 1 year ago

In pavucontrol, in the Recording tab, you have to set the source of the visualizer's audio input to Monitor of [your audio output device]. Then it will visualize the audio played by the system itself.

e-tornike commented 1 year ago

That works. Thanks a lot for the help!