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_sampler.hpp
* @brief Interface for an audio sampler.
* @author Kacper Kowalski - kacper.s.kowalski@gmail.com
*/
#ifndef AUDIO_SAMPLER_HPP
#define AUDIO_SAMPLER_HPP
#include <exception>
#include <functional>
template<typename BatchOfSamples>
struct AudioSampler
{
virtual BatchOfSamples await_samples() = 0;
virtual ~AudioSampler() = default;
struct Error : std::exception
{
};
};
#endif /* AUDIO_SAMPLER_HPP */