60 size_t total_samples =
output->nb_samples;
72 while (total_samples != 0) {
80 total_samples -= samples;
88AudioLoop::onBufferFinish()
91std::unique_ptr<AudioFrame>
95 samples =
buffer_->sample_rate / 50;
size_t getSize() const
Accessor to the size of the buffer.
size_t pos_
current position, set to 0, when initialize
void seek(double relative_position)
AudioLoop(AudioFormat format)
libjami::FrameBuffer buffer_
The data buffer.
void getNext(AVFrame *output, bool mute)
Get the next fragment of the tone the function change the intern position, and will loop.
void emitSignal(Args... args)