[Bug 513576] [NEW] unixcw leaves audio device volume muted on exit

Kamal Mostafa kamal at whence.com
Thu Jan 28 03:30:55 UTC 2010


Public bug reported:

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.

** Affects: unixcw (Ubuntu)
     Importance: Undecided
     Assignee: Kamal Mostafa (kamalmostafa)
         Status: In Progress

** Changed in: unixcw (Ubuntu)
       Status: New => In Progress

** Changed in: unixcw (Ubuntu)
     Assignee: (unassigned) => Kamal Mostafa (kamalmostafa)

-- 
unixcw leaves audio device volume muted on exit
https://bugs.launchpad.net/bugs/513576
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list