.\" This manpage 2003-2005,2008,2016,2018 (C) by Christian Garbs .\" Licensed under GNU GPL v1 or, at your option, any later version. .TH "GBSPLAY" "1" "unknown" "Tobias Diedrich" "Gameboy sound player" .SH "NAME" gbsplay \- Gameboy sound player .SH "SYNOPSIS" .B gbsplay .RI [ options ] .I gbs\-file .RI [ start\-subsong " [" stop\-subsong "] ]" .SH "DESCRIPTION" .B gbsplay emulates the sound hardware of the Nintendo Gameboy. It is able to play the sounds from a Gameboy module dump (.GBS format) over .I /dev/dsp and other sound drivers. .SH "OPTIONS" .TP .BI -E " endian" Set endianness to \fIendian\fP. Valid values are \fBb\fP, \fBl\fP and \fBn\fP for big, little and native endian respectively. .TP .BI -f " fadeout\-time" Set fadeout time to \fIfadeout\-time\fP seconds. Instead of cutting the subsong off hard, do a soft fadeout. Default value is 3 seconds. .TP .BI -g " subsong\-gap" Set subsong gap to \fIsubsong\-gap\fP seconds. Before playing the next subsong after the subsong timeout, \fIsubsong\-gap\fP seconds of silence will be played. Default value is 2 seconds. .TP .B -h Display short help and exit. .TP .BI -H " filter" Set output high-pass type to \fIfilter\fP. Valid values are .BR dmg " (Gameboy Classic)," .BR cgb " (Gameboy Color) and" .BR off " (no filter)." Default value is dmg. .TP .B -l Enable loop mode. After the last subsong has been played, playback starts again with the first subsong. Default is no loop. .TP .BI -o " plugin" Select sound output plugin \fIplugin\fP. Select \fBlist\fP to view a list of all available output plugins. Default value depends on compilation options. .TP .B -q Be quieter, reduce verbosity. Can be applied multiple times. Default verbosity is 3. .TP .BI -r " samplerate" Set the samplerate to \fIsamplerate\fP Hz. Default value is 44100Hz. .TP .BI -R " refresh\-delay" Set the refresh delay to \fIrefresh\-delay\fP milliseconds. Larger values will lower CPU usage, but things as subsong changes, fadeouts, reactions to keypresses and the on\-screen display will be delayed. Default value is 33 milliseconds. .TP .BI -t " subsong\-timeout" Set subsong timeout to \fIsubsong\-timeout\fP seconds. When a subsong has been played for the given time, the player will skip to the next subsong. A timeout of 0 seconds disables automatic subsong changes. Default value is 120 seconds. .TP .BI -T " silence\-timeout" Set silence timeout to \fIsilence\-timeout\fP seconds. When a subsong contains silence for the given time, the player will skip to the next subsong. Default value is 2 seconds. .TP .B -v Increase verbosity, print more information. Can be applied multiple times. Default verbosity is 3. .TP .B -V Display version number and exit. .TP .B -z Play subsongs in shuffle mode. Every subsong will be played once in random order. .TP .B -Z Play subsongs in random mode. Like shuffle mode (\fI-z\fP), but a subsong can be played multiple times. .TP .B -1 Mute channel 1 on start. .TP .B -2 Mute channel 2 on start. .TP .B -3 Mute channel 3 on start. .TP .B -4 Mute channel 4 on start. .TP .I gbs\-file The sound file to play. Must be in uncompressed .GBS format. .TP .I start\-subsong The subsong from the sound file to play first. If not specified, the default song declared in the sound file will be played unless shuffle (\fI-z\fP) or random mode (\fI-Z\fP) are active. An out\-of\-bounds number will be clipped to the possible range of subsongs. .TP .I stop\-subsong .B gbsplay exits after this subsong has been played. If not specified or out\-of\-bounds, .B gbsplay will exit after playing the last subsong, unless in loop mode (\fI-l\fP). .SH "KEYBOARD CONTROL" .B gbsplay supports basic keyboard control. The following commands are recognized: .TP .B p Skip to the previous subsong. .TP .B n Skip to the next subsong. .TP .BR q " or " Esc Quit \fBgbsplay\fP. .TP .B Space Toggle play/pause. .TP .B 1 Mute/unmute channel 1. .TP .B 2 Mute/unmute channel 2. .TP .B 3 Mute/unmute channel 3. .TP .B 4 Mute/unmute channel 4. .SH "OUTPUT PLUGINS" Output plugins are sometimes called \fIplugouts\fP because that's shorter, so don't be confused. Not all of the plugins listed here may be available, see `\fIgbsplay\ -o\ list\fP'. .TP .B alsa Use the ALSA sound driver for sound output. .TP .B altmidi Alternative implementation of the MIDI output plugin (see \fImidi\fP below). Should export more accurate note off events (the length register is taken into account), but generated MIDI files will be more complicated and fine grained and probably not suitable for editing or printing a score. .TP .B devdsp Use the OSS sound driver for sound output via \fI/dev/dsp\fP. .TP .B dsound Use the DirectSound sound driver for sound output on Microsoft Windows. .TP .B iodumper Dump IO calls to the Gameboy sound hardware to stdout. This reduces the verbosity to 0 (see \fI-q\fP) because stdout is used for the dumped data. .TP .B midi Write a simple MIDI conversion of the song into a seperate file per subsong. The files are called \fIgbsplay-%d.mid\fP, where \fI%d\fP is replaced with the subsong number. The files are created in the current working directory and existing files are silently overwritten. Only channels 1 to 3 are converted to MIDI, because channel 4 contains noise data that can't be converted into MIDI note events. Every GBS channel is exported to a seperate MIDI channel. When multiple voices share a channel, they will not be separated in the output. The conversion is rather basic and complicated GBS files using tricks and hacks will not be converted properly. .TP .B nas Use the NAS sound driver for sound output to a Network Audio Server. .TP .B pulse Use the Pulseaudio sound driver for sound output. .TP .B stdout Dump the raw audio stream to stdout. This reduces the verbosity to 0 (see \fI-q\fP) because stdout is used for the dumped data. The raw audio is always stereo (2 channels), 16 bit signed PCM. Sample rate and endianess can be set via \fI-E\fP and \fI-r\fP. .SH "FILES" .TP .I /etc/gbsplayrc Default location of the global configuration file. .TP .I ~/.gbsplayrc User configuration file. .SH "BUGS" If you encounter bugs, please report them via .I https://github.com/mmitch/gbsplay/issues or write to <\fIgbsplay\-dev@lists.uguu.de\fP>. .SH "AUTHORS" .B gbsplay was written by Tobias Diedrich <\fIranma+gbsplay@tdiedrich.de\fP> (with contributions from others, see README). .SH "COPYRIGHT" .B gbsplay is licensed under GNU GPL v1 or, at your option, any later version. .SH "SEE ALSO" .BR gbsinfo (1), .BR gbsplayrc (5)