Posts: 4
Threads: 1
Joined: Sep 2020
Reputation:
0
hi
I try to use opencpn as an anchor alarm with the watch dog plugin.
The plugin works, I can sea the alarm box.
But no sound !
However I have sound on Openplotter (VLC, internet browser...)
Openplotter is up to date, opencpn 5.2.4
on the opencpn option menu / user interface / sound device, I only have : unknow device: 0
if somebody have an idea to fix that I'm interested !!
many thanks by advance
Nicolas
brittany
France
Posts: 2,379
Threads: 21
Joined: Jun 2016
Reputation:
75
hmm... opencpn uses portaudio. I havent tried sound on the pi for a while. Can you confirm that sound output works from other programs like aplay? What does alsamixer show?
Posts: 4
Threads: 1
Joined: Sep 2020
Reputation:
0
2021-06-27, 08:47 PM
(This post was last modified: 2021-06-27, 09:04 PM by Hydranico.)
hello
alsamixer shows :
/proc/asound/cards/cards :
0 [b1 ]: bcm2835_hdmi - bcm2835 HDMI 1
bcm2835 HDMI 1
1 [Headphones ]: bcm2835_headphonbmc2835 Headphones - bcm2835 Headphones
bcm2835 Headphones
I have selected the "headphone" soundcard but still no sound on opencpn while it's working on other applications...
But I wonder if the problem doesn't come from the watchdog plugin because when I select a .wav file as an alarm it isn't registered : if I click on ok on the alarm config window and if I edit again the alarm, no sound is selected...
Thanks for your reply !
OK...
the problem was the name of my alarm sound file...
it was rather long and complicated. It have changed it for "Alarm.wav" and it works perfectly.
thanks !!!
Posts: 2,379
Threads: 21
Joined: Jun 2016
Reputation:
75
so you are saying having a long complex filename the watchdog cannot play it?
I am the author so what exactly was the filename? I can fix this.
Posts: 4
Threads: 1
Joined: Sep 2020
Reputation:
0
Hi
I'm sorry but I don't remember the file âme but it was something like a sentence with spaces and maybe spécial letters.
But immediately fixed with a basic file name.