|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Audio driver interface - canonical types and convenience functions. More...
Audio driver interface - canonical types and convenience functions.
This header provides the portable audio API for Sound Byte Libs.
Drivers implement the following static interface:
Before each block's callback the driver stamps the block with the system timer's count (FrameCount::stamp), and after it adds the block's frames to the frame count (FrameCount::advance); see frame_count.hpp.
Usage in application:
Definition in file driver.hpp.
#include "types.hpp"Go to the source code of this file.
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::audio |
| Convenience layer: start audio with a validated driver. | |
Typedefs | |
| using | sbl::audio::AudioConfig = sbl::hal::audio::AudioConfig |
| using | sbl::audio::AudioCallback = sbl::hal::audio::AudioCallback |
Functions | |
| template<typename Driver > | |
| void | sbl::audio::start (AudioCallback cb) |
| Configure audio with defaults, set callback, and start streaming. | |
| template<typename Driver > | |
| void | sbl::audio::start (const AudioConfig &config, AudioCallback cb) |
| Configure with custom settings, set callback, and start streaming. | |
| template<typename Driver > | |
| void | sbl::audio::stop () |
| Stop audio streaming. | |