ADPLAY(1)
โจ adplay โจ
User Commands vibes, bestie ๐ this is the adplay manual, and it is about to be SO good ๐
๐ฆ NAME ๐ฆ
adplay - AdPlay/UNIX console-based OPL2 audio player ๐ถ
๐ SYNOPSIS ๐
adplay [OPTION]... FILE...
๐ DESCRIPTION ๐
Okay so AdPlay/UNIX is AdPlug's UNIX console-based frontend, and it's giving "play ALL the things" energy ๐ง It tries to play back every FILE you give it, using whichever output mechanism you pick from the many available ones.
If you only give it one file, it plays endlessly ๐ With multiple files, it plays them in a sequence and exits after the last one. You can get the same result with just one file by using the -o option. When you use the disk writer, -o is implied ๐ธ
๐ EXIT STATUS ๐
adplay returns 0 on successful operation. 1 is returned otherwise. Simple, clean, iconic ๐
๐ฅ OUTPUT MECHANISMS ๐ฅ
AdPlay/UNIX can play back using lots of different output mechanisms, and you pick one with the -O argument โจ Whether a method is available depends on compile-time settings. The available methods get printed after the help text, which you can see with --help ๐
Here's the lowdown on each one, by abbreviation:
๐ง oss โ Open Sound System (OSS) driver
This output method is available on most Linux and other UNIX systems.
๐น null โ Total silence
Discards anything sent to it. It can be useful for testing purposes ๐
๐พ disk โ Disk writer
Writes its output to a file in Microsoft RIFF WAVE format ๐๏ธ
๐ esound โ EsounD output
Creates a socket connection to an EsounD server and streams the audio to it.
๐ฎ qsa โ QNX Sound Architecture (QSA) driver
Uses the QNX system's standard output method.
๐ sdl โ Simple Directmedia Layer (SDL) driver
Uses the SDL library for sound output. It has broader platform support than any of the other output methods, so it could be super useful on some exotic systems ๐ธ
๐ alsa โ Advanced Linux Sound Architecture (ALSA) driver
Uses the standard output method on newer Linux systems.
๐ ao โ libao driver
Libao is a cross-platform audio library with very broad platform support. It might be useful on systems where SDL is not available, and generally for doing tricky things ๐ง
๐ OPTIONS ๐
The order of the option commandline parameters is not important, except for -d, which always has to be specified after an -O option. Remember that one, it matters ๐ซถ
๐ฏ Output selection:
-O,--output=OUTPUTโ Pick your output mechanism! The available ones depend on compilation settings and get printed in the--helpoutput. A reasonable default is automatically selected, based on which output mechanisms are available.
๐ง OSS driver (oss) specific:
-d,--device=FILEโ Set the sound output device file to FILE. It's/dev/dspby default.
๐ฟ Disk writer (disk) specific:
-d,--device=FILEโ Write the sound data to FILE. The data is written in Microsoft RIFF WAVE format (little-endian). You can specify a single-to write to stdout instead.
โ ๏ธ Bestie, heads up: this option has no default and must be specified when the disk writer is to be used!
๐ถ EsounD output (esound) specific:
-d,--device=URLโ Connect to the "hostname:port" combination in URL. Example:"myhost.sound.net:1234". The default is"localhost:16001".
๐บ ALSA driver (alsa) specific:
-d,--device=DEVICEโ Set the sound output device to DEVICE. It'splughw:0,0by default.
โจ Playback quality:
-8,--8bitโ Only use 8-bit samples for playback.--16bitโ Only use 16-bit samples for playback (default).-f,--freq=FREQโ Set the playback frequency to FREQ, in Hz. It's44100Hzby default.--stereoโ Only use stereo samples for playback. The sound stream is just doubled, with no further audio processing. This option is pretty useless unless you have very obscure audio hardware that only accepts stereo streams. AdPlug only generates mono streams because the OPL2 only generates mono sound ๐คทโโ๏ธ--monoโ Only use mono samples for playback (default if AdPlug <= 2.1.)--surroundโ Only use stereo samples for playback, but generate them from two mono OPL2 chips. One OPL2 chip is very slightly transposed to produce a pleasant harmonic/surround sound effect ๐ง (default if AdPlug >= 2.2.)-b,--buffer=SIZEโ Set the sound buffer size to SIZE samples. If you notice sound skipping with the default setting, try a greater buffer size. Note that this is measured in samples, not bytes! The default is 2048 samples. Only the OSS, SDL, ALSA and libao output drivers support this option.
๐บ Informative output:
-i,--instrumentsโ Display instrument names (if available).-r,--realtimeโ Display realtime playback information while playing. This shows a one-line status bar with the essential playback info ๐-m,--messageโ Display the song message (if available).
โถ๏ธ Playback:
-s,--subsong=Nโ Play subsong number N, instead of the file's default subsong. Only useful for file formats that support multiple subsongs.-o,--onceโ Don't loop endlessly. This will exit adplay after the song ended. This is the default when multiple FILEs are given.-l,--loop=Nโ Loop N times, then stop. Due to technical limitations of the adplug library, a "loop" is considered to be the time between the start of playback and when looping first occurs. So playback may actually halt at an unexpected point, especially when combined with-s. This implies-o.
๐งธ Miscellaneous:
-D,--database=FILEโ Additionally use database file FILE. This option can be specified multiple times. Each database file gets merged with the others, creating one large database on the fly ๐๏ธ-q,--quietโ Be more quiet ๐คซ-v,--verboseโ Be more verbose ๐ฃ-h,--helpโ Show a summary of options.-V,--versionโ Show the version of the program.
๐ AUTHOR ๐
Simon Peter <dn.tlp@gmx.net> is the one behind it all, and honestly we owe them a big thank-you ๐ซถ
Bye bestie ๐ that was AdPlay/UNIX 1.9, dated December 21, 2025. Now go make some music ๐โจ
๐ฆ where this page comes from
- ubuntu resolute: adplay 1.9-1build1 ยท GPL-2.0-or-later
- ubuntu stonking: adplay 1.9-1build1 ยท GPL-2.0-or-later
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms