From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F1z8e-0003o6-HI for qemu-devel@nongnu.org; Wed, 25 Jan 2006 23:53:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F1z8c-0003ns-Qz for qemu-devel@nongnu.org; Wed, 25 Jan 2006 23:53:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1z8c-0003nn-MM for qemu-devel@nongnu.org; Wed, 25 Jan 2006 23:53:38 -0500 Received: from [81.29.64.88] (helo=mail.shareable.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F1z68-000713-0E for qemu-devel@nongnu.org; Wed, 25 Jan 2006 23:51:04 -0500 Received: from mail.shareable.org (localhost [127.0.0.1]) by mail.shareable.org (8.12.8/8.12.8) with ESMTP id k0Q4ohHc023620 for ; Thu, 26 Jan 2006 04:50:43 GMT Received: (from jamie@localhost) by mail.shareable.org (8.12.8/8.12.8/Submit) id k0Q4ohep023618 for qemu-devel@nongnu.org; Thu, 26 Jan 2006 04:50:43 GMT Date: Thu, 26 Jan 2006 04:50:43 +0000 From: Jamie Lokier Subject: Re: [Qemu-devel] [PATCH] PC speaker emulation (square wave) Message-ID: <20060126045043.GA23296@mail.shareable.org> References: <43D0D1A4.4090304@softax.com.pl> <43D61F14.8080209@softax.com.pl> <4EECB3A5-BFC6-4003-BABF-A1EC5ED958E6@gmx.de> <43D67218.9000107@softax.com.pl> <43D6A008.30606@bellard.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, I simplified my patch to generate just plain square waves. > Indeed, its sound is much closer to a real PC speaker now. > > Does "cut off frequency" mean, that we have silence above that > specific frequency? I changed my patch to go this way. Before, it > always played the highest possible frequency for that case (f > 16 kHz). No, it means the higher-frequency harmonic components of the square wave are attenuated, which affects how it sounds. Filtering a square wave in this way is particularly simple, but unlikely to be worth the effort. -- Jamie