Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions internal/MozziGuts_impl_MBED.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,19 @@ void stopMozzi() {
audio_output_timer.detach();
}

#elif MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_EXTERNAL_CUSTOM)
// Demand-driven: no timer is claimed and no interrupt is installed. The sketch
// drives audioHook() itself and provides audioOutput() / canBufferAudioOutput(),
// so startAudio() has nothing to attach and stopMozzi() nothing to detach.
// startAudioInput() is still called so a sketch using
// MOZZI_AUDIO_INPUT_STANDARD gets its acquisition running.
static void startAudio() {
startAudioInput();
}

void stopMozzi() {
}

#elif MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_INTERNAL_DAC)

} // namespace MozziPrivate
Expand Down