Package: bplay
Version: 0.991-10
Followup-For: Bug #273557

The -j and -t numbers are passed into getbcount() as integers.
Thus, it silently gives the incorrect behavior if you tell
it to play (or record) for 3.4 second, or if you tell it to
skip 1.3 seconds.

Worse yet, since 0 is used to indicate "never terminate" in getbcount(),
giving it "-t 0.7" will lead to timelim=0,
which will cause the program to never terminate.

The fix is pretty obvious.   Convert timelim and timejmp to float or double,
fix the definition of getbcount() to accept floating point numbers for those
arguments,

change "timelim == 0" to "timelim == 0.0", and modify two lines in getbcount():

                *bcount = (double)speed * timelim * (bits/8);
                and
                *bjump = (double)longspeed*timejmp*(bits/8);



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

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages bplay depends on:
ii  libc6                         2.7-5      GNU C Library: Shared libraries

bplay 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