Package: fmtools
Version: 1.0.3
Severity: normal

According to the man page, the command 'fm 88.4 100' should tune to 88.4 MHz
and turn up the volume to 100%. While the frequency tuning works as expected,
the volume is set to an inaudible value:

fm 88.4 100
Radio tuned to 88.40 MHz at 0.15% volume


Specififying an unsigned 16 bit integer value does the job:

fm 88.4 65535
Radio tuned to 88.40 MHz at 100.00% volume

fm 88.4 32768
Radio tuned to 88.40 MHz at 50.00% volume


fm also accepts volumes bigger 2^16 and reports volumes above 100%.
The actual volume is set to (volume mod 2^16):

fm 88.4 130000
Radio tuned to 88.40 MHz at 198.37% volume


The desired bahaviour should probably be as described in the man page:
The specified volume should be in the range of 0 and 100, in percent.
I also think that numbers outside the allowed range should not change
the volume but cause an error message instead, like passing an invalid
frequency does:

fm 1
Frequency 1.0 out of range (65.0 - 108.0 MHz)


-- System Information:
Debian Release: lenny/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-4-p4pe (PREEMPT)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages fmtools depends on:
ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries

fmtools recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to