Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
f8d639fecThis file is pinned to the selected release. Download the original to open it in your design tool.
/**
* @file audio_dac.hpp
* @brief Defines interface for an Audio DAC.
* @author Kacper Kowalski - kacper.s.kowalski@gmail.com
*/
#ifndef AUDIO_DAC_HPP
#define AUDIO_DAC_HPP
#include <exception>
#include <functional>
#include <stdexcept>
template<typename BatchOfSamples>
struct AudioDac
{
virtual void await_stream_update(BatchOfSamples) = 0;
struct Error : std::runtime_error
{
using std::runtime_error::runtime_error;
};
virtual ~AudioDac() = default;
};
#endif /* AUDIO_DAC_HPP */