Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Latest commit

 

History

History
41 lines (30 loc) · 811 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 811 Bytes

play-sound

Prerequisites

Ubuntu

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.

macOS

brew install alut

Build and run

stack build --fast
stack exec play-sound