ubuntu-hams-devel team mailing list archive
-
ubuntu-hams-devel team
-
Mailing list archive
-
Message #00874
[Bug 513576] Re: unixcw leaves audio device volume muted on exit
** Changed in: unixcw (Debian)
Status: New => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
ham developers, which is subscribed to unixcw in Ubuntu.
https://bugs.launchpad.net/bugs/513576
Title:
unixcw leaves audio device volume muted on exit
Status in “unixcw” package in Ubuntu:
Fix Released
Status in “unixcw” package in Debian:
Fix Committed
Bug description:
Binary package hint: unixcw
The programs 'cw' or 'cwcp' accidentally leave the system audio device
(mixer) volume muted when they exit.
TESTCASE:
1. Ensure that the system audio volume is not muted (e.g. with the gnome volume control applet).
2. In a terminal, run
echo KA6MAL | cw
While listening to the Morse code audio output, notice the gnome volume control applet flashing its "muted" status along with the dits and dahs.
3. After the command returns to the shell prompt, notice that the gnome volume control applet has been left muted. The volume should have been restored.
Note: If the Morse code output is completely garbled (just long
continuous tones) then you're experiencing bug LP: #511676 "unixcw
sends incorrect characters".
ANALYSIS:
unixcw's 'cwlib' library works by manipulating the audio device (mixer) volume control -- switching the volume on and off to generate Morse code. This is the normal behavior of the 'cwlib' library.
The library does actually preserve the initial volume setting, but
fails to restore it in some scenarios -- specifically, when it exits
during it 10 second "keep the soundcard held" termination phase as
occurs when piping input into 'cw' and when quitting 'cwcp' with F12.
These programs just need to call cw_complete_reset() in all exit
paths.
I think its possible that some systems' audio devices may *not*
indicate a flashing volume control applet because 'cwlib' might find
and uses a different volume mixer -- this bug is probably not
reproducible on such systems.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unixcw/+bug/513576/+subscriptions