Posts: 87
Threads: 2
Joined: Jul 2020
Reputation:
2
2020-07-03, 04:51 PM
(This post was last modified: 2020-07-05, 08:54 PM by Sailoog.)
Hi,
I'm not sure this is a bug or some bad configuration on my side.
I have just bought an HDMI monitor for my PI4, and it has integrated speakers.
I'm on OpenPlotter 2.0.
Sound works quite fine out of the box: I get the chime on startup, VLC works just fine etc.
However, alert sounds in OpenCPN (ship bells, or watchdog alerts), are distorted: see the attached recording (rename from .doc to .mp3).
Also, in OpenCPN settings (User Interface -> Sound Device), I only have 'upmix', 'vdownmix' and 'dmix' to choose from. Is this normal ? Which one should I choose ?
Thanks !
Posts: 56
Threads: 1
Joined: Sep 2018
Reputation:
4
2020-07-03, 08:53 PM
(This post was last modified: 2020-07-03, 08:57 PM by monos1.)
All official opencpn builds for Rpi drag that bug. I believe that builds are made for other kind of arm boards and in such boards they go well but in the Rpi they don't. I reported this bug years ago but for some reason I don't know they haven't fixed it yet.
To fix it you have to build opencpn with different parameters for the sound. I've been doing it for several years for my Spanish openplotter compilations. I'm going to see if I can find one and put it here so you can install it and try to solve the problem in your case.
At this moment I'm with the 5.2 beta builds and it wouldn't help you but somewhere I must have one of the 5.0.
Posts: 56
Threads: 1
Joined: Sep 2018
Reputation:
4
2020-07-04, 12:06 PM
(This post was last modified: 2020-07-04, 12:10 PM by monos1.)
Yes, seems the same I use for myself:
Exactly copy-paste:
cmake -DOCPN_ENABLE_PORTAUDIO=OFF -DOCPN_ENABLE_SNDFILE=OFF -DOCPN_ENABLE_SYSTEM_CMD_SOUND=ON -DCMAKE_INSTALL_PREFIX=/usr ../
Posts: 87
Threads: 2
Joined: Jul 2020
Reputation:
2
Ok thanks ! I'll try that.
Posts: 87
Threads: 2
Joined: Jul 2020
Reputation:
2
In fact OCPN_ENABLE_xxx syntax is available only for 5.1/5.2.
In OpenCPN 5.0 you need to specify:
-DENABLE_PORTAUDIO=OFF -DENABLE_SNDFILE=OFF -DENABLE_SYSTEM_CMD_SOUND=ON
It's building right now.
Posts: 56
Threads: 1
Joined: Sep 2018
Reputation:
4
Finally it seems that in the opencpn 5.2 beta the bug of the sound problem with opencpn on Rpi has been solved. For the next version it will work as it should without the need to build it. Good news!