Beatmup
sles_playback.cpp File Reference
#include "sles_playback.h"
#include <SLES/OpenSLES.h>
#include <SLES/OpenSLES_Android.h>

Go to the source code of this file.

Classes

class  SLESPlayback::SLESBackend
 

Functions

void playerCallback (SLAndroidSimpleBufferQueueItf queue, void *data)
 
void assert (SLresult code, const char *message)
 
void assert (SLresult code, const char *message, const Audio::AbstractPlayback::Mode &mode)
 

Function Documentation

◆ playerCallback()

void playerCallback ( SLAndroidSimpleBufferQueueItf  queue,
void *  data 
)

Definition at line 163 of file sles_playback.cpp.

163  {
164  ((Audio::BasicRealtimePlayback*)data)->bufferQueueCallbackFunc();
165 }

◆ assert() [1/2]

void assert ( SLresult  code,
const char *  message 
)
inline

Definition at line 36 of file sles_playback.cpp.

36  {
37  if (code != SL_RESULT_SUCCESS)
38  throw Audio::PlaybackException(message, code);
39 }
Communicates an error occurred during the playback.

◆ assert() [2/2]

void assert ( SLresult  code,
const char *  message,
const Audio::AbstractPlayback::Mode mode 
)
inline

Definition at line 41 of file sles_playback.cpp.

41  {
42  if (code != SL_RESULT_SUCCESS)
43  throw Audio::PlaybackException(message, code, mode);
44 }
JNIEnv jlong jint mode