add new libao audio backend
commit39270c06db7962c01cf4a386cb62304d1defb7da
authorrofl0r <rofl0r@users.noreply.github.com>
Fri, 27 Aug 2021 05:03:41 +0000 (27 05:03 +0000)
committerrofl0r <rofl0r@users.noreply.github.com>
Fri, 27 Aug 2021 05:03:41 +0000 (27 05:03 +0000)
tree3bc24c280a65663f7f3ea7d10af38f2847873643
parentbd20770b9bd2026c90ea67e7e616a1c1d21dcfaa
add new libao audio backend

2 decades ago, when gnuboy was written, OSS was the main audio backend
for most unices, though it's been replaced with alsa on linux since, so
on a vanilla kernel configuration no sound comes out of the speakers
with gnuboy's default audio backend (except for SDL variant).
unfortunately, using alsa's libasound is quite complex and involves lots
of code.
libao is a portable audio layer, which, on linux, sits on top of alsa
and provides a very simple and nice API, very similar to what OSS used
to be.
ao is now selected by default when --with-sound=yes (default) is passed
to configure, as it's superior to the mostly-defunct OSS backend.
configure
configure.ac
sys/ao/ao.c [new file with mode: 0644]
sys/nix/config.h.in