Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NeF5v-00046d-0f for mharc-grub-devel@gnu.org; Sun, 07 Feb 2010 16:55:07 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeF5s-00045H-TT for grub-devel@gnu.org; Sun, 07 Feb 2010 16:55:04 -0500 Received: from [199.232.76.173] (port=39455 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeF5s-00044x-FV for grub-devel@gnu.org; Sun, 07 Feb 2010 16:55:04 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeF5r-0002JX-2S for grub-devel@gnu.org; Sun, 07 Feb 2010 16:55:04 -0500 Received: from solo.fdn.fr ([80.67.169.19]:35425) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NeF5q-0002Gn-LD for grub-devel@gnu.org; Sun, 07 Feb 2010 16:55:02 -0500 Received: from const.ipv6 (youpi.is-a-geek.org [80.67.176.89]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTP id 427E0444A8; Sun, 7 Feb 2010 22:54:50 +0100 (CET) Received: from samy by const.ipv6 with local (Exim 4.71) (envelope-from ) id 1NeF5d-00041K-Gk; Sun, 07 Feb 2010 22:54:49 +0100 Date: Sun, 7 Feb 2010 22:54:49 +0100 From: Samuel Thibault To: The development of GNU GRUB Message-ID: <20100207215449.GH4925@const.famille.thibault.fr> References: <20100202130916.GH6401@const.bordeaux.inria.fr> <1265119787.2605.2.camel@fz.local> <20100202230043.GA7619@const.famille.thibault.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20100202230043.GA7619@const.famille.thibault.fr> User-Agent: Mutt/1.5.12-2006-07-14 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: subdino2004@yahoo.fr Subject: Re: beep support? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2010 21:55:05 -0000 Samuel Thibault, le Wed 03 Feb 2010 00:00:43 +0100, a =E9crit : > Felix Zielcke, le Tue 02 Feb 2010 15:09:47 +0100, a =E9crit : > > There's play command in commands/i386/pc/play.c but I still don't kno= w > > what file format it actual plays. >=20 > Ok, reading the source code told me how it works. I'm more and more considering extending the play command a bit: for now it takes a file name as parameter and plays it. However this is far from user-friendly, needs to access /boot already, and one typically just wants to play a few notes, so a separate file seems overkill to me. It would perhaps be good to be able to use the following two syntaxes: play (hd0,1)/boot/grub/melody or play 120 440 1 BTW, the tempo part of the play command currently depends on the value of GRUB_TICKS_PER_SECOND, shouldn't it be independent from it by using the patch below, so that with a base tempo 60 and a duration 1, one gets one second? Samuel 2010-02-07 Samuel Thibault * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 * GRUB_TICKS_PER_SECOND. --- commands/i386/pc/play.c 2010-01-03 22:05:07 +0000 +++ commands/i386/pc/play.c 2010-02-07 21:48:43 +0000 @@ -29,7 +29,7 @@ #include #include =20 -#define BASE_TEMPO 120 +#define BASE_TEMPO (60 * GRUB_TICKS_PER_SECOND) =20 /* The speaker port. */ #define SPEAKER 0x61