Ring Daemon 16.0.0
Loading...
Searching...
No Matches
audio_common.h File Reference
Include dependency graph for audio_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  jami
 
namespace  jami::opensl
 

Macros

#define BUF_COUNT   16
 
#define DEVICE_SHADOW_BUFFER_QUEUE_LEN   4
 
#define ENGINE_SERVICE_MSG_KICKSTART_PLAYER   1
 
#define ENGINE_SERVICE_MSG_RETRIEVE_DUMP_BUFS   2
 
#define PLAY_KICKSTART_BUFFER_COUNT   8
 
#define RECORD_DEVICE_KICKSTART_BUF_COUNT   4
 
#define SLASSERT(x)
 

Typedefs

using jami::opensl::EngineCallback = std::function< void()>
 

Functions

SLAndroidDataFormat_PCM_EX jami::opensl::convertToSLSampleFormat (const jami::AudioFormat &infos)
 

Macro Definition Documentation

◆ BUF_COUNT

#define BUF_COUNT   16

Definition at line 34 of file audio_common.h.

◆ DEVICE_SHADOW_BUFFER_QUEUE_LEN

#define DEVICE_SHADOW_BUFFER_QUEUE_LEN   4

Definition at line 33 of file audio_common.h.

◆ ENGINE_SERVICE_MSG_KICKSTART_PLAYER

#define ENGINE_SERVICE_MSG_KICKSTART_PLAYER   1

Definition at line 76 of file audio_common.h.

◆ ENGINE_SERVICE_MSG_RETRIEVE_DUMP_BUFS

#define ENGINE_SERVICE_MSG_RETRIEVE_DUMP_BUFS   2

Definition at line 77 of file audio_common.h.

◆ PLAY_KICKSTART_BUFFER_COUNT

#define PLAY_KICKSTART_BUFFER_COUNT   8

Definition at line 32 of file audio_common.h.

◆ RECORD_DEVICE_KICKSTART_BUF_COUNT

#define RECORD_DEVICE_KICKSTART_BUF_COUNT   4

Definition at line 31 of file audio_common.h.

◆ SLASSERT

#define SLASSERT (   x)
Value:
{ \
if (SL_RESULT_SUCCESS != (x)) \
throw std::runtime_error("OpenSLES error " + std::to_string(x)); \
}

Definition at line 67 of file audio_common.h.