This module contains the following:
- A full audio device module implementation
- A template audio device module implementation with intentionally blank functions to be filled in by workshop attendees/openDAQ students
Each module folder contains a CMakeLists.txt that serves as the root of the CMake project. Each of those projects should be built separately.
The modules/CMake projects have a dependency to openDAQ 3.31.0, the openDAQ packages used at this workshop can be found at: https://github.com/openDAQ/audio-device-workshop-binaries It is recommended to first install the binaries if a version matching your complier of choice is available. Otherwise, openDAQ will be fetched and built from source.
- CMake version 3.25 or newer.
- A C++ compiler (MSVC, gcc > 7.3, clang > 9)
- (optional) Installed openDAQ package version 3.31.0
- (optional, if using installed openDAQ) The openDAQ installation folder is in the system path variable/LD_LIBRARY_PATH.
- (optional) openDAQ Python package v3.31.0dev0 that can be installed via:
py -m pip install -i https://test.pypi.org/simple/ opendaq==3.31.0dev
To follow along the workshop, lightweight installation is recommended (smaller download size, faster installation). A full installation of Visual Studio with the C++ workload is also valid.
Instructions for the lightweight setup:
- Download "Build Tools for Visual Studio 2026" directly or follow the steps:
- Go to visualstudio.microsoft.com/downloads
- Scroll down to the All Downloads section expand "Tools for Visual Studio"
- Download "Build Tools for Visual Studio 2026"
- Install the build tools:
- Run the downloaded installer
- In the Workloads tab select "Desktop development with C++"
- On the right hand side in the "Installation details" checklist, select two optional features: MSVC Build Tools and C++ CMake Tools (918MB download, 3.29GB disk space) and uncheck all others.
- Download Visual Studio Code and install it.
- Open
audio_device_module_templatefolder in Visual Studio Code and install the recommended extensions (accept the prompt):
- C/C++ by Microsoft
- CMake Tools by Microsoft
- When asked or in the bottom status bar select the Visual Studio compiler kit for your system (e.g. Visual Studio Community 2026 Release - amd64).
Run the command to install the prerequisites
sudo apt-get update
sudo apt-get install -y git build-essential lld cmake ninja-build mono-complete python3 gdb
Install Visual Studio Code following the official instructions.
Open the audio_device_module_template folcder in Visual Studio Code and install the recommended extensions (filter by Recommended):
- C/C++ by Microsoft
- CMake Tools by Microsoft
In the bottom status bar select GCC as your compiler kit.
Once the above steps have been completed, build the workshop program via the "Build" button in the status bar or F7.
To run/debug the program, go to Run and Debug tab in the left hand side panel, select the preset matching your system and launch via green play button or F5.