58 size_t total_samples =
output->nb_samples;
74 while (total_samples != 0) {
80 static_cast<int>(
pos),
81 static_cast<int>(samples),
87 static_cast<int>(samples),
92 total_samples -= samples;
100AudioLoop::onBufferFinish()
103std::unique_ptr<AudioFrame>
107 samples =
buffer_->sample_rate / 50;
109 auto buffer = std::make_unique<AudioFrame>(
format_, samples);
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)