I submitted a patch to do just this upstream.

http://git.alsa-project.org/?p=alsa-
utils.git;a=commit;h=3b1ee6b325926336564c73c5c22831b59f404805

** Changed in: alsa-utils (Ubuntu)
     Assignee: (unassigned) => Erik Ackermann (domohawk)

** Changed in: alsa-utils (Ubuntu)
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to alsa-utils in Ubuntu.
https://bugs.launchpad.net/bugs/321477

Title:
  speaker-test: limited user freedom and utility

Status in “alsa-utils” package in Ubuntu:
  Fix Committed

Bug description:
  Binary package hint: alsa-utils

  The speaker-test utility in alsa-utils restricts the sine wave
  frequency to 50-5000Hz.

  Therefore:
  > speaker-test -test sine -f 30
  outputs a sine wave of 50Hz instead of the specified 30Hz.

  While the author of the code introduced such restriction to prevent
  people causing physical damage ( to their speakers or even themselves
  ) it restricts the users freedom and lowers the application of the
  utility as a signal generator.

  For example, while creating a sound system for a car, you may test the
  speakers work at varying frequencies below 50Hz but would be unable to
  do so with speaker-test.

  I propose that a new switch is added to the program that is not affected by 
the restriction ( or disables the restrictions ) and modify the description of 
the existing switch. For example:
  -f,--frequency           sine wave frequency in Hz (50-5000). See 
--force-frequency
  --force-frequency     forces the frequency even if outside the 50-5000Hz range

  I may be able to provide a patch to do this but I have not programmed
  in the speaker-test source language ( C? ) before so it would require
  some scrutiny.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-utils/+bug/321477/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to