15 [[nodiscard]]
auto read_samples(std::span<float> out) -> std::size_t
final;
17 auto drain_buffer(std::span<float> out) -> std::size_t;
19 std::vector<float> m_buffer{};
20 std::vector<float> m_staging{};
IStream wrapper that enables subtypes to push arbitrary number of samples.
Definition stream_pipe.hpp:7
virtual void push_samples(std::vector< float > &out)=0
Push desired number of samples at the end of out. Push nothing to indicate end of stream.
Interface for custom audio stream (data source). Supports streaming data of indefinite length....
Definition stream.hpp:12