JvanKatwijk / dab-cmdline

DAB decoding library with example of its use
GNU General Public License v2.0
57 stars 29 forks source link

no audio out with Raspberry Pi OS Lite #79

Closed sulmfish closed 3 years ago

sulmfish commented 3 years ago

I installed dab-cmdline example 2 on a Raspberry Pi 3B with Raspberry Pi OS Lite (headless) as described in the related documentation. I got it working but there is no audio out. I can generate an audio file with option -O, but it sounds horrible (at least with omxplayer). But no audio out with OS Lite and from remote terminal. If I install it based on the Raspberry Pi Desktop OS and start example 2 from Desktop, everything is fine. Installation via remote terminal is exactly the same. Do I have to install any additional libraries? Any idea?

JvanKatwijk commented 3 years ago

Do I understand it correctly that in case you install the software on a headless installed RPI there is no sound, while when you install the software directly (i.e. from a connected terminal) everything works fine?

If you install the software remotely, and you start the compiled executable, you do get response from the program stating that there are services etc, but whatever soundcard you select on the RPI there is no sound on the audioplug?

Op wo 19 mei 2021 om 11:59 schreef sulmfish @.***>:

I installed dab-cmdline example 2 on a Raspberry Pi 3B with Raspberry Pi OS Lite (headless) as described in the related documentation. I got it working but there is no audio out. I can generate an audio file with option -O, but it sounds horrible (at least with omxplayer). But no audio out with OS Lite and from remote terminal. If I install it based on the Raspberry Pi Desktop OS and start example 2 from Desktop, everything is fine. Installation via remote terminal is exactly the same. Do I have to install any additional libraries? Any idea?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/dab-cmdline/issues/79, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCPHQEHQETBP43DIPUX66LTOODXBANCNFSM45EJRWSA .

-- Jan van Katwijk

sulmfish commented 3 years ago

I found the solution: In the standard Raspberry Pi OS (with desktop) pulseaudio is installed and is started automatically after boot. In the Rapsberry Pi OS Lite (which is without desktop) pulseaudio is not installed. So "sudo apt-get install pulseaudio" is the solution and pulseaudio must be started before dab-cmdline by "pulseaudio --daemonize" for example.

andimik commented 3 years ago

@sulmfish

Good hint. Maybe it's worth to mention it in the Readme.

sulmfish commented 3 years ago

By the way: I didn't need "sudo apt-get install mesa-common-dev" and "sudo apt-get install libgl1-mesa-dev". I think these are installed with pulseaudio.

sulmfish commented 3 years ago

One thing to mention belonging to Raspberry Pi OS Lite: I had to "sudo dpkg-reconfigure locales". I always selected en_GB.UTF8, en_US.UTF8 and de_DE.UTF8. Probably too much, but it worked. This can be done also via raspi-config.