|
Ring Daemon
|
#include <audioloop.h>


Public Member Functions | |
| AudioLoop (AudioFormat format) | |
| AudioFormat | getFormat () const |
| void | getNext (AVFrame *output, bool mute) |
| Get the next fragment of the tone the function change the intern position, and will loop. | |
| std::unique_ptr< AudioFrame > | getNext (size_t samples=0, bool mute=false) |
| size_t | getSize () const |
| Accessor to the size of the buffer. | |
| AudioLoop & | operator= (AudioLoop &&o) noexcept |
| void | reset () |
| Reset the pointer position. | |
| void | seek (double relative_position) |
| virtual | ~AudioLoop () |
Protected Attributes | |
| libjami::FrameBuffer | buffer_ {} |
| The data buffer. | |
| AudioFormat | format_ |
| size_t | pos_ {0} |
| current position, set to 0, when initialize | |
Definition at line 37 of file audioloop.h.
| jami::AudioLoop::AudioLoop | ( | AudioFormat | format | ) |
Definition at line 34 of file audioloop.cpp.
|
virtual |
Definition at line 40 of file audioloop.cpp.
|
inline |
Definition at line 73 of file audioloop.h.
References format_.
Get the next fragment of the tone the function change the intern position, and will loop.
| output | The data buffer |
| nb | of int16 to send |
| gain | The gain [-1.0, 1.0] |
Definition at line 49 of file audioloop.cpp.
References buffer_, jami::emitSignal(), format_, JAMI_ERR, jami::AudioFormat::nb_channels, pos_, and jami::AudioFormat::sampleFormat.
Referenced by getNext().

| std::unique_ptr< AudioFrame > jami::AudioLoop::getNext | ( | size_t | samples = 0, |
| bool | mute = false |
||
| ) |
Definition at line 104 of file audioloop.cpp.
References buffer_, jami::emitSignal(), format_, and getNext().

|
inline |
Accessor to the size of the buffer.
Definition at line 72 of file audioloop.h.
References buffer_.
Referenced by seek().
Definition at line 42 of file audioloop.h.
References buffer_, jami::emitSignal(), and pos_.

|
inline |
Definition at line 43 of file audioloop.cpp.
References jami::emitSignal(), getSize(), and pos_.

|
protected |
The data buffer.
Definition at line 78 of file audioloop.h.
Referenced by jami::AudioFile::AudioFile(), getNext(), getNext(), getSize(), and operator=().
|
protected |
Definition at line 76 of file audioloop.h.
Referenced by jami::AudioFile::AudioFile(), getFormat(), getNext(), and getNext().
|
protected |
current position, set to 0, when initialize
Definition at line 81 of file audioloop.h.
Referenced by getNext(), operator=(), reset(), and seek().