Linux command
aoss 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Run an application with ALSA OSS emulation
aoss [application]
Run a game that requires OSS audio
aoss [game_binary]
Run with debug output
ALSA_DEBUG=1 aoss [application]
说明
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.
FAQ
What is the aoss command used for?
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.
How do I run a basic aoss example?
Run `aoss [application]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more aoss examples?
This page includes 3 examples for aoss, plus related commands for nearby Linux tasks.