bufferCopy

class bufferCopy : public kotekan::Stage

Copies frames from one buffer into many buffers.

Buffer

  • in_buf Buffer to copy frames from

    • Format: Matches the output buffers

    • Metadata: Matches the output buffers

  • out_bufs Array of output buffers to copy frames into. This is a named array of output buffers in the format:

    • buffer_name_0

    • buffer_name_1

    • Format: any, but all must be the same type.

    • Metadata: any, but all must be the same type.

Author

James Willis

Warning

The sizes of the frames must be the same in all buffers, and the metadata types and underlying pools must also be the same.

Public Functions

bufferCopy(kotekan::Config &config, const std::string &unique_name, kotekan::bufferContainer &buffer_container)

Constructor.

~bufferCopy() = default

Destructor.

virtual void main_thread() override

Thread for merging the frames.