Skip to content

A base setup to compile and run Alure and OpenaAL-Soft projects in c++

License

Notifications You must be signed in to change notification settings

snada/openal-alure-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAL Soft and Alure Sandbox

Basic project template providing a full cross-platform local environment to develop audio applications with OpenAL-Soft and Alure by Chris "kcat" Robinson.

This work in progress project aims to quickly resolve the building issues on different platforms, providing easy access to awesome features like HRTF.

To achieve this, this project will be updated together with alure version 2 development, to expose all those features (like hrtf) not readily available on the 1.2 release.

This environment will:

  • Compile a local build of the two libraries
  • Link your executable against this local version
  • Copy hrtf file definitions into the executable directory

This environment will produce a binary file only runnable within your machine (at least on Mac and Linux, as Windows will automatically search for shared libs on the exe directory). If you ever want to distribute your app, either install the dependencies on your system and package accordingly, or find your way to build a relocatable package via RPATH.

Build

Clone this project, then:

mkdir build

cd build

cmake ..

cmake --build .

This project expects you to use Visual Studio as build generator on Windows.

Run

You will find your compiled binary inside your build directory.

Linux problems opening default device

If you run the executable and you get an error like:

Could not open /dev/dsp

Try installing alsa-oss package and run your example like this:

`aoss ./main /path/to/file.wav

About

A base setup to compile and run Alure and OpenaAL-Soft projects in c++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published