43 std::function<
void(std::shared_ptr<AudioFrame>&&)>
cb = {});
78 std::shared_ptr<AudioFrame>
dequeue();
96 std::function<
void(std::shared_ptr<AudioFrame>&&)> cb_;
103 bool hasVoice_ {
false};
void setFrameSize(int frameSize)
void setFormat(const AudioFormat &format, int frameSize)
int frameSize() const
Gets the number of samples per output frame.
int samples() const
Gets the numbers of samples available for reading.
void enqueue(std::shared_ptr< AudioFrame > &&frame)
Write @frame's data to the queue.
std::shared_ptr< AudioFrame > dequeue()
Notifies owner of a new frame.
AudioFormat format() const
Gets the format used by @queue_, input frames must match this format or enqueuing will fail.
void emitSignal(Args... args)
Simple macro to hide class' copy constructor and assignment operator.
#define NON_COPYABLE(ClassName)