bmc0 / dsp

An audio processing program with an interactive mode.
ISC License
219 stars 31 forks source link

Optional dependencies - names of Ubuntu packages #21

Open JanChec opened 7 years ago

JanChec commented 7 years ago

Hey!

This is a fantastic project, I was searching for something like APO equalizer for some time, thanks! I can donate all Ubuntu 17.04 packages names for optional dependencies so installation will be easier for Ubuntu users:

[dsp] enabled ladspa_host.o: libtool [dsp] enabled sndfile.o (sndfile): libsndfile-dev [dsp] enabled ffmpeg.o (libavcodec libavformat libavutil): libavcodec-dev libavformat-dev libavutil-dev [dsp] enabled resample.o fir.o (fftw3): fftw3-dev [dsp] enabled zita_convolver.o: libzita-convolver-dev [dsp] enabled alsa.o (alsa): libasound2-dev [dsp] enabled ao.o (ao): libao-dev [dsp] enabled mp3.o (mad): libmad0-dev [dsp] enabled pulse.o (libpulse-simple): libpulse-dev

Cheers!

bmc0 commented 7 years ago

Thanks! I'll leave this issue open for now to make it easier for people to find. If you want you could add a wiki page with Ubuntu-specific information.

JanChec commented 7 years ago

Great, I think I will after further testing. Possibly after I figure out how to make it work with an external sound card that may be not attached when turning on the PC (so setup on startup won't work). Maybe some supervisor with auto setup when the card is available. Also players like Spotify don't work now if you reconnect the device, you have to turn them off and on. I saw some solutions with redirecting inputs, but haven't worked (I think) the first time I tried. I want UX to work as good as APO (it's automatically applied to set up devices, nevermind reconnecting them).

JanChec commented 6 years ago

If you'll allow, I'll keep here some notes for the article(s).

An example how to trigger a script every time you reconnect a DAC. Of course it is only for portable DACs. The script would setup systemwide DSP. In this case for Mojo:

$ cat /etc/udev/rules.d/99-mojo.rules

ACTION=="add", DEVPATH=="/devices/pci*/usb*/*/sound/card1/pcm*", ATTRS{idVendor}=="245f", ATTRS{idProduct}=="0815", RUN+="/home/username/Music/DSP/on_mojo_on.sh"

Then reload rules with sudo udevadm control -R.

You can get DEVPATH by using sudo udevadm monitor and reconnecting the DAC. idVendor and idProduct are from lsusb, for example. Also from lsusb you can take first and second numbers - those are USB bus and device port, so you can view DEVPATH and other details by using: udevadm info -a -p $(udevadm info -q path -n /dev/bus/usb/001/036) (for bus 001 and device 036).

arjunmenon commented 6 years ago

Hey Way earlier I had documented the steps for proper installation. https://gist.github.com/arjunmenon/d279215f7c7a3258e377756f54e8ee52