19#include "../audio_format.h"
22#include <SLES/OpenSLES.h>
23#include <SLES/OpenSLES_Android.h>
31#define RECORD_DEVICE_KICKSTART_BUF_COUNT 4
32#define PLAY_KICKSTART_BUFFER_COUNT 8
33#define DEVICE_SHADOW_BUFFER_QUEUE_LEN 4
64 throw std::runtime_error(
"Unsupported sample format");
69 if (SL_RESULT_SUCCESS != (x)) \
70 throw std::runtime_error("OpenSLES error " + std::to_string(x)); \
76#define ENGINE_SERVICE_MSG_KICKSTART_PLAYER 1
77#define ENGINE_SERVICE_MSG_RETRIEVE_DUMP_BUFS 2
std::function< void()> EngineCallback
SLAndroidDataFormat_PCM_EX convertToSLSampleFormat(const jami::AudioFormat &infos)
void emitSignal(Args... args)