2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
* commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help. * docs/grub.texi (Command-line and menu entry commands): Document play command.
This commit is contained in:
parent
37c8483b97
commit
6fa7cfce65
3 changed files with 27 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||||
|
|
||||||
|
* commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
|
||||||
|
* docs/grub.texi (Command-line and menu entry commands): Document play
|
||||||
|
command.
|
||||||
|
|
||||||
2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||||
|
|
||||||
* commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
|
* commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
|
||||||
|
|
|
@ -259,7 +259,8 @@ static grub_command_t cmd;
|
||||||
GRUB_MOD_INIT(play)
|
GRUB_MOD_INIT(play)
|
||||||
{
|
{
|
||||||
cmd = grub_register_command ("play", grub_cmd_play,
|
cmd = grub_register_command ("play", grub_cmd_play,
|
||||||
N_("FILE"), N_("Play a tune."));
|
N_("FILE | TEMPO [PITCH1 DURATION1] [PITCH2 DURATION2] ... "),
|
||||||
|
N_("Play a tune."));
|
||||||
}
|
}
|
||||||
|
|
||||||
GRUB_MOD_FINI(play)
|
GRUB_MOD_FINI(play)
|
||||||
|
|
|
@ -1126,6 +1126,7 @@ you forget a command, you can run the command @command{help}
|
||||||
* insmod:: Insert a module
|
* insmod:: Insert a module
|
||||||
* keystatus:: Check key modifier status
|
* keystatus:: Check key modifier status
|
||||||
* ls:: List devices or files
|
* ls:: List devices or files
|
||||||
|
* play:: Play a tune
|
||||||
* reboot:: Reboot your computer
|
* reboot:: Reboot your computer
|
||||||
* set:: Set an environment variable
|
* set:: Set an environment variable
|
||||||
* unset:: Unset an environment variable
|
* unset:: Unset an environment variable
|
||||||
|
@ -1364,6 +1365,24 @@ name syntax}), then list the contents of that directory.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
|
|
||||||
|
@node play
|
||||||
|
@subsection play
|
||||||
|
|
||||||
|
@deffn Command play file | tempo [pitch1 duration1] [pitch2 duration2] ...
|
||||||
|
Plays a tune
|
||||||
|
|
||||||
|
If the argument is a file name (@pxref{File name syntax}), play the tune
|
||||||
|
recorded in it. The file format is first the tempo as an unsigned 32bit
|
||||||
|
little-endian number, then pairs of unsigned 16bit little-endian numbers for
|
||||||
|
pitch and duration pairs.
|
||||||
|
|
||||||
|
If the arguments are a series of numbers, play the inline tune.
|
||||||
|
|
||||||
|
The tempo is the base for all note durations. 60 gives a 1-second base, 120
|
||||||
|
gives a half-second base, etc. Pitches are Hz.
|
||||||
|
@end deffn
|
||||||
|
|
||||||
|
|
||||||
@node reboot
|
@node reboot
|
||||||
@subsection reboot
|
@subsection reboot
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue