Skip to content

openDAQ/audio-device-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

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

How to build

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.

Requirements

  • 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

Environment setup guide

Windows

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:

  1. Download "Build Tools for Visual Studio 2026" directly or follow the steps:
  1. 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.
  1. Download Visual Studio Code and install it.
  2. Open audio_device_module_template folder in Visual Studio Code and install the recommended extensions (accept the prompt):
  • C/C++ by Microsoft
  • CMake Tools by Microsoft
  1. 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).

Linux

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.

Build and run

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors