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

seahug/haskell-openal-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published