-
Notifications
You must be signed in to change notification settings - Fork 0
Home
IEAudio4Linux is a lightweight, modern C++ wrapper for ALSA, simplifying Linux audio development.
IEAudio4Linux requires the ALSA (Advanced Linux Sound Architecture) Library Development package to be installed.
-
Install Alsa development tools:
- Using apt:
sudo apt install libasound2-dev
- Using dnf:
sudo dnf install alsa-lib-devel
- Using apt:
Launch your preferred terminal and navigate to a empty working directory.
Clone IEAudio4Linux to the working directory.
git clone https://github.com/Interactive-Echoes/IEAudio4Linux.git
cd IEAudio4Linux
IEAudio4Linux uses CMake as its build system. To get started, ensure you have CMake installed and follow these steps:
-
Generate Build Files:
cmake -S . -B ./build
This command creates a
./build
directory where all the CMake-generated files will be placed. -
Build IEAudio4Linux:
cmake --build ./build
After building, you can find the library in the
./build/bin
directory namedIEAudio4Linux
.
To integrate the built IEAudio4Linux library into your application:
-
Include IEAudio4Linux in Your Project:
Add the IEAudio4Linux directory to your application's project directory or if your application is using Git simply call:git submodule add https://github.com/Interactive-Echoes/IEAudio4Linux.git ThirdParty/IEAudio4Linux git submodule init .
-
Update
CMakeLists.txt
:
In your application'sCMakeLists.txt
, include IEAudio4Linux by adding:add_subdirectory(<path_to_IEAudio4Linux>) # Example: add_subdirectory(ThirdParty/IEAudio4Linux) target_link_libraries(<your-target> PUBLIC IEAudio4Linux)
Alternatively, you can link against the DLL using other methods if preferred.
-
Build IEAudio4Linux:
Make sureIEAudio4Linux
library is in the expected directory