File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,11 +57,13 @@ jobs:
5757 - name : Configure CMake
5858 # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
5959 # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
60+ # RTAUDIO_DUMMY=ON uses the dummy backend since CI runners have no audio hardware.
6061 run : >
6162 cmake -B ${{ steps.strings.outputs.build-output-dir }}
6263 -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
6364 -DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
6465 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
66+ -DRTAUDIO_DUMMY=ON
6567 -S ${{ github.workspace }}
6668
6769 - name : Build
Original file line number Diff line number Diff line change @@ -27,8 +27,14 @@ target_include_directories(RunFilters PRIVATE
2727 example
2828)
2929
30+ # Option to use RtAudio dummy backend (for CI environments without audio hardware)
31+ option (RTAUDIO_DUMMY "Use RtAudio dummy backend (no audio output)" OFF )
32+
3033# Platform-specific RtAudio configuration for MoogLadderExample
31- if (WIN32 )
34+ if (RTAUDIO_DUMMY)
35+ # Dummy backend - no platform API defined, RtAudio auto-selects dummy
36+ message (STATUS "Using RtAudio dummy backend" )
37+ elseif (WIN32 )
3238 target_compile_definitions (MoogLadderExample PRIVATE __WINDOWS_DS__ )
3339 target_link_libraries (MoogLadderExample PRIVATE dsound ole32 winmm )
3440elseif (APPLE )
You can’t perform that action at this time.
0 commit comments