diff options
Diffstat (limited to 'media/libcubeb/src/cubeb-sles.h')
-rw-r--r-- | media/libcubeb/src/cubeb-sles.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/media/libcubeb/src/cubeb-sles.h b/media/libcubeb/src/cubeb-sles.h new file mode 100644 index 0000000000..0725523528 --- /dev/null +++ b/media/libcubeb/src/cubeb-sles.h @@ -0,0 +1,26 @@ +#ifndef _CUBEB_SLES_H_ +#define _CUBEB_SLES_H_ +#include <OpenSLESProvider.h> +#include <SLES/OpenSLES.h> + +static SLresult cubeb_get_sles_engine( + SLObjectItf *pEngine, + SLuint32 numOptions, + const SLEngineOption *pEngineOptions, + SLuint32 numInterfaces, + const SLInterfaceID *pInterfaceIds, + const SLboolean * pInterfaceRequired) { + return mozilla_get_sles_engine(pEngine, numOptions, pEngineOptions); +} + +static void cubeb_destroy_sles_engine(SLObjectItf *self) { + mozilla_destroy_sles_engine(self); +} + +/* Only synchronous operation is supported, as if the second + parameter was FALSE. */ +static SLresult cubeb_realize_sles_engine(SLObjectItf self) { + return mozilla_realize_sles_engine(self); +} + +#endif |