/etc/gbsplayrc
Default location of the global configuration file.
Gameboy sound player configuration file
A configuration file is a text file that may contain options for gbsplay(1) as well as comments.
Comments are introduced by a hash mark ("#"). A comment continues to the end of the line.
Whitespace, including empty lines, is ignored.
An option is set by giving the option name, followed by an equal sign ("=") and the option value.
Option values can be of these types:
BooleanAn integer number in decimal. 0 is considered false, everything else is true.
EndianA string to select the endianness:
nativenative endian
littlelittle endian
bigbig endian
For backwards compatibility you can also use just the first character of each option ("n", "l" or "b").
A string to select the output high-pass filter:
dmgFPGameboy Classic
cgbFPGameboy Color
offFPno filter
IntegerAn integer number in decimal.
A string to select the loop mode:
noneno looping
rangeloop over selected subsongs
singleloop a single subsong
See LOOP MODES in gbsplay(1) for details.
A string to select the play mode:
linearplay subsongs in linear order
randomplay subsongs in random order where every subsong can be played multiple times
shuffleplay subsongs in random order where every subsong is played only once
PluginThe name of an output plugin. Run `gbsplay -o list' to get a list of all available output plugins.
This manpage describes the configuration file format of gbsplay(1).
endian = EndianSet the output endianness.
fadeout = IntegerSet the fadeout time in seconds. Instead of cutting the subsong off hard, do a soft fadeout.
filter_type = Filter typeSet the output high-pass filter.
loop = BooleanSet the loop mode to "range" when enabled. Set the loop mode to "none" when disabled. Deprecated in favor of the loop_mode option.
loop_mode = Loop modeSet the desired loop mode.
output_plugin = PluginSet the sound output plugin.
play_mode = Play modeSet the desired play mode.
rate = IntegerSet the samplerate in Hz.
refresh_delay = IntegerSet the refresh delay in milliseconds. Larger values will lower CPU usage, but things as subsong changes, fadeouts, reactions to keypresses and the on-screen display will be delayed.
silence_timeout = IntegerSet the silence timeout in seconds. When a subsong contains silence for the given time, the player will skip to the next subsong.
subsong_gap = IntegerSet the subsong gap in seconds. Before playing the next subsong after the subsong timeout, subsong_gap seconds of silence will be played.
subsong_timeout = IntegerSet the subsong timeout in 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.
verbosity = IntegerSet the verbosity level (default: 3). A value of 0 means no messages on stdout.
/etc/gbsplayrc
Default location of the global configuration file.
~/.gbsplayrc
User configuration file.
A simple configuration file might look like this:
# select NAS output plugin and play subsongs for at most 5 minutes output_plugin = nas subsong_timeout = 300
9 releases since Debian 5.0 (Lenny); the text changed 5 times.