I’m trying to write a program that will play sound through the 3.5mm jack on my rpi3b+, but I am struggling to make it work. I have the audio playing (I think), but no sound is coming out. Any ideas what I’m missing?
@thislooksfun, welcome to the forums! The first thought that occurs to me is whether you were testing it with balenaOS v2.41.0, because of these recent issues:
If so, the recommendation is to upgrade to v2.43 or later, or downgrade to v2.38 (downgrading currently requires re-flashing the SD card). Otherwise, I could also suggest a couple of other sound-playing projects for testing / debugging:
Hi, what audio device are you using? As the config you have in there seems to use the hifiberry HAT:
If I deploy the same project as you, and just remove asound.conf, over the headphone jack plays music for me properly when used with mplayer (say mplayer -playlist "http://somafm.com/groovesalad130.pls"). So at least something works…
So I feel that you are setting up the wrong sound device? Just an idea. If you have more info about your hardware setup, that would likely help us give more specific feedback.