sudo apt-get install \
freeglut3-dev \
libalut0 \
libalut-dev \
libglu1-mesa-dev \
libopenal1 \
libopenal-dev \
mesa-common-dev
If the program bails with output like the following, OpenAL may be misconfigured:
AL lib: (WW) alcCloseDevice: Releasing context 0x24cb9e0
AL lib: (WW) FreeContext: (0x24cb9e0) Deleting 1 Source(s)
AL lib: (WW) FreeDevice: (0x24cd890) Deleting 2 Buffer(s)
One possible problem (see) can be addressed by modifying /etc/openal/alsoft.conf
and setting drivers=pulse,alsa
.
brew install alut
stack build --fast
stack exec play-sound