From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F1Sjs-0000mU-3M for qemu-devel@nongnu.org; Tue, 24 Jan 2006 13:17:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F1Sjm-0000gm-EA for qemu-devel@nongnu.org; Tue, 24 Jan 2006 13:17:52 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1Sjk-0000dL-Po for qemu-devel@nongnu.org; Tue, 24 Jan 2006 13:17:48 -0500 Received: from [62.89.75.144] (helo=bozon2.softax.com.pl) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1F1Soh-0003TO-Mw for qemu-devel@nongnu.org; Tue, 24 Jan 2006 13:22:55 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by bozon2.softax.com.pl (Postfix) with ESMTP id 17DA5DC096 for ; Tue, 24 Jan 2006 19:14:57 +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 01447-16 for ; Tue, 24 Jan 2006 19:14:55 +0100 (CET) Received: from [16.193.144.98] (unknown [16.193.144.98]) by bozon2.softax.com.pl (Postfix) with ESMTP id 74422DC06F for ; Tue, 24 Jan 2006 19:14:55 +0100 (CET) Message-ID: <43D67218.9000107@softax.com.pl> Date: Tue, 24 Jan 2006 19:29:44 +0100 From: Sebastian Kaliszewski MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] PC speaker emulation (fixed point) References: <43C2CA44.9080504@bellard.org> <66187480-AA25-4749-B6E7-8630B804A6EA@gmx.de> <43D0D1A4.4090304@softax.com.pl> <43D61F14.8080209@softax.com.pl> <4EECB3A5-BFC6-4003-BABF-A1EC5ED958E6@gmx.de> In-Reply-To: <4EECB3A5-BFC6-4003-BABF-A1EC5ED958E6@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: 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 Joachim Henke wrote: > Ok, these are really strong arguments. Thanks a lot for your > interesting statements! I'll do some testing on square waves and will > post an updated patch, as I am also not totally satisfied with the > current sound myself. One little suggestion... Real PC-speaker is rather poor source of sound, and I also noticed, that sound cards which took PC-speaker sound for themselves (some SB-clones did route PC-speaker sound into thier own output) liked to low-pass filter the resulting audio. So to make things as real as feasible, use your wave table to store something like square wave with rounded corners -- maybe sth like pow(sin(x), 0.2) (i.e. sinus rooted to 5th degree) will sound pleasant enough. rgds -- Sebastian Kaliszewski