30 #ifndef SLES_ENGINE_HPP
31 #define SLES_ENGINE_HPP
33 #include <SLES/OpenSLES.h>
44 explicit Engine(SLEngineItf _engine):engine(_engine) {}
47 SLDataSource *pAudioSrc, SLDataSink *pAudioSnk,
48 SLuint32 numInterfaces,
49 const SLInterfaceID *pInterfaceIds,
50 const SLboolean *pInterfaceRequired) {
51 return (*engine)->CreateAudioPlayer(engine, pPlayer,
53 numInterfaces, pInterfaceIds,
58 SLuint32 numInterfaces,
59 const SLInterfaceID *pInterfaceIds,
60 const SLboolean *pInterfaceRequired) {
61 return (*engine)->CreateOutputMix(engine, pMix,
62 numInterfaces, pInterfaceIds,
SLresult CreateOutputMix(SLObjectItf *pMix, SLuint32 numInterfaces, const SLInterfaceID *pInterfaceIds, const SLboolean *pInterfaceRequired)
SLresult CreateAudioPlayer(SLObjectItf *pPlayer, SLDataSource *pAudioSrc, SLDataSink *pAudioSnk, SLuint32 numInterfaces, const SLInterfaceID *pInterfaceIds, const SLboolean *pInterfaceRequired)
Engine(SLEngineItf _engine)
OO wrapper for an OpenSL/ES SLEngineItf variable.