9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Nigel Roles" <nigel@9fs.org>
To: <9fans@cse.psu.edu>
Subject: RE: [9fans] mpg123
Date: Mon, 10 Feb 2003 14:14:56 +0000	[thread overview]
Message-ID: <HOEHIDJJJINMLFPOLFJCIEKPCKAA.nigel@9fs.org> (raw)
In-Reply-To: <017201c2d0e2$e7273d50$4d4a800a@will551>

Because it computes (around ine 170 of layer3.c)

1 - tan(3 * Pi / 4)

which is 0

and then a series of values which involve dividing
by it.

In my experience, most mp3 code available on
lunix is full of this kind of stuff.

It's no wonder that if you port an encoder or decoder
from one platform to another you get a different answer.

It's only because the x86 FPU gives an answer to
tan(3 * PI / 4)

"that is almost, but not quite, entirely unlike"

-1 that this works at all.

Write out 100 times, "floating point numbers
are approximate numbers".

I would guess that row 9 of the table is not used,
so that putting

if (i == 9) continue;

in the loop will fix it.

-----Original Message-----
From: 9fans-admin@cse.psu.edu [mailto:9fans-admin@cse.psu.edu]On Behalf
Of Conor Williams
Sent: 10 February 2003 09:01
To: 9fans@cse.psu.edu
Subject: [9fans] mpg123


ne one use mpg123?
I got it compiled but now im getting:
mpg123 107: suicide: sys: fp: division by zero: fppc=0x6389 status=0xb9b4
    pc=0x00006380

when I try and play anything using the command
mpg123 -s pc.mp3 > /dev/audio

any one got Tad Hunts email address - thats the guy who
ported over mpg123 to plan 9?
tx
will551



  parent reply	other threads:[~2003-02-10 14:14 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-09 10:05 [9fans] what a mess the Unix world has become Aharon Robbins
2003-02-09 19:48 ` Mike Haertel
2003-02-10  9:00 ` [9fans] mpg123 Conor Williams
2003-02-10 12:02   ` Russ Cox
2003-02-10 14:14   ` Nigel Roles [this message]
2003-02-10 14:34     ` Fco.J.Ballesteros
2003-02-10 14:53       ` Axel Belinfante
2003-02-10 15:05         ` Fco.J.Ballesteros
2003-02-10 15:53       ` Conor Williams
2003-02-10 16:41         ` Fco.J.Ballesteros
2003-02-11 10:19     ` Conor Williams
2003-02-11 11:26       ` nigel
2003-02-13  9:02         ` Conor Williams
2003-02-10 18:13   ` Tad Hunt
2003-02-10 10:04 ` [9fans] what a mess the Unix world has become Douglas A. Gwyn
2003-02-10 11:58   ` Russ Cox
2003-02-10 15:20   ` Ronald G. Minnich
2003-02-11  9:29     ` Douglas A. Gwyn
2003-02-11 10:25       ` Geoff Collyer
2005-01-21  4:38 [9fans] mpg123 lucio
2005-01-21  7:32 ` Aki M Nyrhinen
2005-01-21 10:20   ` lucio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=HOEHIDJJJINMLFPOLFJCIEKPCKAA.nigel@9fs.org \
    --to=nigel@9fs.org \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).