From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <838b9e71b3d2c9e015ed50b2bd73c32c@plan9.escet.urjc.es> From: Fco.J.Ballesteros To: 9fans@cse.psu.edu Subject: RE: [9fans] mpg123 In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-tvfentturctgyzuhxkgbzazglp" Date: Mon, 10 Feb 2003 15:34:04 +0100 Topicbox-Message-UUID: 56002ce0-eacb-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-tvfentturctgyzuhxkgbzazglp Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit The mad player uses fixed point and is quite optimized. I think the ported version is in our web page. It's what I use in the bitsy and works properly there (needless to say on a pc). --upas-tvfentturctgyzuhxkgbzazglp Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by aquamar; Mon Feb 10 15:15:23 MET 2003 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.6.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id BD11D19A05; Mon, 10 Feb 2003 09:15:08 -0500 (EST) Delivered-To: 9fans@cse.psu.edu Received: from 9fs.org (cotswold.demon.co.uk [194.222.75.186]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 3142A19A04 for <9fans@cse.psu.edu>; Mon, 10 Feb 2003 09:14:46 -0500 (EST) Received: from 9fs.org ([192.168.100.103]) by 9fs.org; Mon Feb 10 14:16:39 GMT 2003 Received: from 192.168.100.111 ([192.168.100.111]) by 9fs.org; Mon Feb 10 14:16:39 GMT 2003 From: "Nigel Roles" To: <9fans@cse.psu.edu> Subject: RE: [9fans] mpg123 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <017201c2d0e2$e7273d50$4d4a800a@will551> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Mon, 10 Feb 2003 14:14:56 -0000 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 --upas-tvfentturctgyzuhxkgbzazglp--