6class DynamicSoundStream;
51 uint64_t start_position = 0)
52 : m_container(container)
53 , m_write_position(start_position)
63 void processing_function(std::shared_ptr<Buffer> buffer)
override;
69 [[nodiscard]]
inline std::shared_ptr<Kakshya::DynamicSoundStream>
get_container()
const {
return m_container; }
93 void set_write_position_time(
double time_seconds);
99 [[nodiscard]]
double get_write_position_time()
const;
103 uint64_t m_write_position { 0 };
Central computational transformation interface for continuous buffer processing.
std::shared_ptr< Kakshya::DynamicSoundStream > m_container
std::shared_ptr< Kakshya::DynamicSoundStream > get_container() const
Get the target DynamicSoundStream container.
void set_write_position(uint64_t position)
Set the current write position in the container.
uint64_t get_write_position() const
Get the current write position in the container.
void reset_position()
Reset write position to the beginning.
StreamWriteProcessor(std::shared_ptr< Kakshya::DynamicSoundStream > container, uint64_t start_position=0)
Construct processor with target DynamicSoundStream container.
Channel-aware processor that writes AudioBuffer data to DynamicSoundStream containers.