Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::AudioFile Class Reference

Abstract interface for file readers. More...

#include <audiofile.h>

Inheritance diagram for jami::AudioFile:
Inheritance graph
Collaboration diagram for jami::AudioFile:
Collaboration graph

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< AudioFramegetNext (size_t samples=0, bool mute=false)
 
size_t getSize () const
 Accessor to the size of the buffer.
 
AudioLoopoperator= (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
 

Detailed Description

Abstract interface for file readers.

Definition at line 39 of file audiofile.h.

Constructor & Destructor Documentation

◆ AudioFile()

jami::AudioFile::AudioFile ( const std::string &  filepath,
unsigned int  sampleRate,
AVSampleFormat  sampleFormat 
)

Member Function Documentation

◆ getFilePath()

std::string jami::AudioFile::getFilePath ( ) const
inline

Definition at line 44 of file audiofile.h.

References filepath_.

Member Data Documentation

◆ filepath_

std::string jami::AudioFile::filepath_
protected

The absolute path to the sound file.

Definition at line 48 of file audiofile.h.

Referenced by getFilePath().


The documentation for this class was generated from the following files: