Mozzi  version v2.0
sound synthesis library for Arduino
disable_stereo_on_github_workflow.h
1 /* This purely internal header takes care of disabling stereo mode when on a github runner. Intended to be used
2  * on platforms that don't support stereo, allowing the compilation to proceed without error. */
3 
4 #if __has_include("../detect_github_runner.h") // the marker file we added inside the workflow
5  // do nothing, if this isn't present
6 # if defined(MOZZI_AUDIO_CHANNELS) && (MOZZI_AUDIO_CHANNELS > 1)
7 # define GITHUB_RUNNER_ACCEPT_STEREO_IN_MONO
8 # undef MOZZI_AUDIO_CHANNELS
9 # define MOZZI_AUDIO_CHANNELS MOZZI_MONO
10 # warning Disabled stereo compilation while in Github runner.
11 # endif
12 
13 #endif