Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F1YeW-00021y-Mb for qemu-devel@nongnu.org; Tue, 24 Jan 2006 19:36:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F1YeH-0001X4-0E for qemu-devel@nongnu.org; Tue, 24 Jan 2006 19:36:36 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1YdY-0000Qx-4R for qemu-devel@nongnu.org; Tue, 24 Jan 2006 19:35:48 -0500 Received: from [62.89.75.144] (helo=bozon2.softax.com.pl) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F1Yaq-0001ma-LW for qemu-devel@nongnu.org; Tue, 24 Jan 2006 19:33:00 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by bozon2.softax.com.pl (Postfix) with ESMTP id 0F4DADC0A3 for ; Wed, 25 Jan 2006 01:32:56 +0100 (CET) Received: from bozon2.softax.pl ([127.0.0.1]) by localhost (bozon2.softax.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11315-15 for ; Wed, 25 Jan 2006 01:32:54 +0100 (CET) Received: from zdzicha.isk.local (bvj174.internetdsl.tpnet.pl [83.18.191.174]) by bozon2.softax.com.pl (Postfix) with ESMTP id 2BDF7DC044 for ; Wed, 25 Jan 2006 01:32:54 +0100 (CET) Content-Type: text/plain; charset="iso-8859-1" From: Sebastian Kaliszewski Subject: Re: [Qemu-devel] [PATCH] PC speaker emulation (fixed point) Date: Wed, 25 Jan 2006 01:38:39 +0100 References: <43D67218.9000107@softax.com.pl> <43D6A008.30606@bellard.org> In-Reply-To: <43D6A008.30606@bellard.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200601250138.39480.Sebastian.Kaliszewski@softax.pl> Reply-To: Sebastian.Kaliszewski@softax.pl, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Tuesday 24 January 2006 22:45, Fabrice Bellard wrote: > If you want to model the real PC speaker, the best to do is to generate > a square signal and to pass it thru a low pass filter with a cut off > frequency of a few kHz. Then you could even be able to play samples thr= u > the simulated PC speaker using the tricks used in old MSDOS programs, > provided QEMU implements a precise cycle counter (it will come someday > !). Change that few to 15 [kHz] and that would be what some PC-speaker hookin= g=20 SB-clones did. But there were PCs with piezoelectric speakers, and those=20 could genereate sounds well above 20kHz. But yes, typically 12-15kHz cuto= ff=20 with 1st or 2nd order filter would do the trick. And if someone wants full reality one would also need some not-too-strong= =20 (1st order, 6dB/oct) hi-pass filter around 80-120Hz -- as those tiny=20 PC-speakers are unable to emit bass. rgds --=20 Sebastian Kaliszewski