31#ifndef SBL_HW_VALIDATION_AUDIO_REQUIREMENTS_HPP_
32#define SBL_HW_VALIDATION_AUDIO_REQUIREMENTS_HPP_
44template<
typename AudioDriver>
47 static constexpr bool validate() {
49 "Required: static init() (void or bool)");
52 "SBL ERROR: Audio driver missing init(const AudioConfig&) method.\n"
53 "Required: static init(const sbl::hal::audio::AudioConfig&) (void or bool)");
56 "SBL ERROR: Audio driver missing set_callback() method.\n"
57 "Required: static void set_callback(sbl::hal::audio::AudioCallback)");
60 "Required: static void start()");
63 "Required: static void stop()");
78template<
typename AudioDriver>
Audio driver requirements validator.
Method and interface detection for driver validation.
constexpr bool audio_driver_valid
Helper to validate an audio driver implementation.
Root namespace for all Sound Byte Libs code.
True if T::init(const AudioConfig&) is a valid static call.
True if T::init() is a valid static call.
True if T::set_callback(AudioCallback) is a valid static call.
True if T::start() is a valid static call.
True if T::stop() is a valid static call.