|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Audio driver requirements validator. More...
#include "method_detection.hpp"Go to the source code of this file.
Classes | |
| class | sbl::validation::AudioDriverRequirements< AudioDriver > |
| Audio driver requirements validator. More... | |
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs functionality. | |
| namespace | sbl::validation |
| Compile-time validation infrastructure. | |
Variables | |
| template<typename AudioDriver > | |
| constexpr bool | sbl::validation::audio_driver_valid = AudioDriverRequirements<AudioDriver>::validate() |
| Helper to validate an audio driver implementation. | |
Audio driver requirements validator.
Validates that audio drivers provide required functionality using the method detection system. This is the core audio contract enforcement for Sound Byte Libs drivers.
Every Sound Byte Libs audio driver MUST implement these methods:
init() - Initialize with default settingsinit(const AudioConfig&) - Initialize with custom settingsset_callback(AudioCallback) - Register processing callbackstart() - Begin audio streamingstop() - Stop audio streamingAdd validation at the bottom of driver sai.hpp (or i2s.hpp, etc.):
Definition in file audio_requirements.hpp.