Go to the documentation of this file. 1 #ifndef AUDIOOUTPUTOPENSLES
2 #define AUDIOOUTPUTOPENSLES
6 #include <SLES/OpenSLES.h>
7 #include <SLES/OpenSLES_Android.h>
14 SLObjectItf*, SLuint32,
const SLEngineOption*, SLuint32,
15 const SLInterfaceID*,
const SLboolean*);
31 void WriteAudio(
unsigned char *aubuf,
int size)
override;
41 static void SPlayedCallback(SLAndroidSimpleBufferQueueItf caller,
void *pContext);
80 #endif // AUDIOOUTPUTOPENSLES
SLObjectItf m_engineObject
SLInterfaceID m_SL_IID_ANDROIDSIMPLEBUFFERQUEUE
AudioOutputSettings * GetOutputSettings(bool digital) override
slCreateEngine_t m_slCreateEnginePtr
int GetNumberOfBuffersQueued() const
int GetVolumeChannel(int channel) const override
SLObjectItf m_outputMixObject
int GetBufferedOnSoundcard(void) const override
Return the size in bytes of frames currently in the audio buffer adjusted with the audio playback lat...
SLresult(*)(SLObjectItf *, SLuint32, const SLEngineOption *, SLuint32, const SLInterfaceID *, const SLboolean *) slCreateEngine_t
bool OpenDevice(void) override
SLInterfaceID m_SL_IID_PLAY
static void SPlayedCallback(SLAndroidSimpleBufferQueueItf caller, void *pContext)
AudioOutputOpenSLES(const AudioSettings &settings)
void PlayedCallback(SLAndroidSimpleBufferQueueItf caller)
SLInterfaceID m_SL_IID_VOLUME
friend class AudioOutputOpenSLESPrivate
virtual ~AudioOutputOpenSLES()
void CloseDevice(void) override
SLInterfaceID m_SL_IID_ENGINE
SLEngineItf m_engineEngine
SLObjectItf m_playerObject
SLAndroidSimpleBufferQueueItf m_playerBufferQueue
void WriteAudio(unsigned char *aubuf, int size) override
int m_nativeOutputSampleRate
void SetVolumeChannel(int channel, int volume) override