We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm working on some music visualization and I'm running in to an interesting problem.
I'm using minim to play the music while a simple visualization is running (see the example PlayASound that comes with minim). This works fine however the sound out on the Raspberry Pi is a bit weak so I want to boost the sound. One way for me to do this is to use the PHat DAC from Pimoroni (https://shop.pimoroni.com/products/phat-dac) since it provides a bit more volume.
To get the PHat DAC to work you need to comment out the line dtparam=audio=on in /boot/config.txt. Doing this disables the built in the ALSA audio on the Raspberry Pi. With this disabled any processing script will fail to load completely. Without the ALSA audio disabled sound will not get played through the PHat DAC.
Does anyone have any suggestions about where I might look for what might be causing the problem?
Please and thank you
Answers
@colinj I am not familiar with the minim library, but I can try to look into it.
Are you seeing any output from minim when you try to run it with the hat? Does the DAC come with an ALSA driver as well?
(For the built-in audio: I presume you tried
amixer
?)I have tried amixer. I have the built-in sound at 100%. I don't know if there is an ALSA driver but I will find out.
@colinj You followed this steps (this implies there is an ALSA driver for this board)? https://learn.pimoroni.com/tutorial/phat/raspberry-pi-phat-dac-install