LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

aoss

Run OSS applications using ALSA emulation

TLDR

Run an application with ALSA OSS emulation
$ aoss [application]
copy
Run a game that requires OSS audio
$ aoss [game_binary]
copy
Choose the ALSA PCM device the OSS /dev/dsp maps to
$ ALSA_OSS_PCM_DEVICE=[plughw:0,0] aoss [application]
copy

SYNOPSIS

aoss osscommand [arguments]

DESCRIPTION

aoss is a wrapper script that enables applications written for the Open Sound System (OSS) API to work with ALSA (Advanced Linux Sound Architecture). It preloads a compatibility library that intercepts OSS system calls and translates them to ALSA equivalents.Many older Linux applications and games were written to use the OSS /dev/dsp and /dev/mixer device interfaces. Since modern Linux systems primarily use ALSA, these applications would fail to produce sound without a compatibility layer. The aoss wrapper provides this translation transparently.The wrapper sets the LD_PRELOAD environment variable to load libaoss.so, which hooks into the application's file operations on OSS device nodes and redirects them through ALSA's PCM interface. The PCM device to open can be set explicitly with the ALSA_OSS_PCM_DEVICE environment variable, overriding the default (dsp0).

CAVEATS

Does not work with statically linked applications or applications that directly use kernel interfaces. Some complex OSS features may not be fully emulated. 32-bit applications on 64-bit systems require the 32-bit version of the ALSA OSS library. Applications using ALSA natively do not need this wrapper.

HISTORY

The aoss wrapper was developed as part of the alsa-oss package to ease the transition from OSS to ALSA during the early 2000s. OSS was the original Linux sound system but was largely replaced by ALSA, which became the standard in Linux kernel 2.6. The wrapper remains useful for running legacy applications that were never updated to use ALSA or PulseAudio.

SEE ALSO

padsp(1), alsamixer(1), aplay(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid