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

#include <audio_player.h>

Collaboration diagram for jami::opensl::AudioPlayer:
Collaboration graph

Public Member Functions

 AudioPlayer (jami::AudioFormat sampleFormat, size_t bufSize, SLEngineItf engine, SLint32 streamType)
 
size_t dbgGetDevBufCount ()
 
 NON_COPYABLE (AudioPlayer)
 
void playAudioBuffers (unsigned count)
 
void processSLCallback (SLAndroidSimpleBufferQueueItf bq)
 
void registerCallback (EngineCallback cb)
 
void setBufQueue (AudioQueue *playQ, AudioQueue *freeQ)
 
bool start ()
 
bool started () const
 
void stop ()
 
 ~AudioPlayer ()
 

Public Attributes

std::mutex m_
 

Detailed Description

Definition at line 32 of file audio_player.h.

Constructor & Destructor Documentation

◆ AudioPlayer()

◆ ~AudioPlayer()

jami::opensl::AudioPlayer::~AudioPlayer ( )

Definition at line 174 of file audio_player.cpp.

References jami::emitSignal(), JAMI_DBG, and m_.

Here is the call graph for this function:

Member Function Documentation

◆ dbgGetDevBufCount()

size_t jami::opensl::AudioPlayer::dbgGetDevBufCount ( void  )

Definition at line 302 of file audio_player.cpp.

References ProducerConsumerQueue< T >::size().

Here is the call graph for this function:

◆ NON_COPYABLE()

jami::opensl::AudioPlayer::NON_COPYABLE ( AudioPlayer  )

◆ playAudioBuffers()

void jami::opensl::AudioPlayer::playAudioBuffers ( unsigned  count)

Definition at line 268 of file audio_player.cpp.

References jami::emitSignal(), ProducerConsumerQueue< T >::front(), JAMI_ERR, ProducerConsumerQueue< T >::pop(), and ProducerConsumerQueue< T >::push().

Here is the call graph for this function:

◆ processSLCallback()

◆ registerCallback()

void jami::opensl::AudioPlayer::registerCallback ( EngineCallback  cb)
inline

Definition at line 63 of file audio_player.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setBufQueue()

void jami::opensl::AudioPlayer::setBufQueue ( AudioQueue playQ,
AudioQueue freeQ 
)

Definition at line 191 of file audio_player.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ start()

bool jami::opensl::AudioPlayer::start ( )

◆ started()

bool jami::opensl::AudioPlayer::started ( ) const

Definition at line 227 of file audio_player.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ stop()

void jami::opensl::AudioPlayer::stop ( )

Member Data Documentation

◆ m_

std::mutex jami::opensl::AudioPlayer::m_

Definition at line 66 of file audio_player.h.

Referenced by processSLCallback(), start(), stop(), and ~AudioPlayer().


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