|
Ring Daemon
|
Abstract interface for file readers. More...
#include <audiofile.h>


Public Member Functions | |
| AudioFile (const std::string &filepath, unsigned int sampleRate, AVSampleFormat sampleFormat) | |
| std::string | getFilePath () const |
Public Member Functions inherited from jami::AudioLoop | |
| 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 | |
| std::string | filepath_ |
| The absolute path to the sound file. | |
Protected Attributes inherited from jami::AudioLoop | |
| libjami::FrameBuffer | buffer_ {} |
| The data buffer. | |
| AudioFormat | format_ |
| size_t | pos_ {0} |
| current position, set to 0, when initialize | |
Abstract interface for file readers.
Definition at line 39 of file audiofile.h.
| jami::AudioFile::AudioFile | ( | const std::string & | filepath, |
| unsigned int | sampleRate, | ||
| AVSampleFormat | sampleFormat | ||
| ) |
Definition at line 55 of file audiofile.cpp.
References jami::AudioLoop::buffer_, jami::emitSignal(), jami::MediaDemuxer::EndOfFile, jami::AudioLoop::format_, JAMI_LOG, jami::AudioFormat::nb_channels, jami::AudioFormat::sample_rate, jami::AudioFormat::sampleFormat, and jami::AudioFormat::toString().

|
inline |
Definition at line 44 of file audiofile.h.
References filepath_.
|
protected |
The absolute path to the sound file.
Definition at line 48 of file audiofile.h.
Referenced by getFilePath().