Duckstation/dep/cubeb/src/cubeb-sles.h

39 lines
948 B
C
Raw Normal View History

2020-01-10 04:59:53 +00:00
/*
* Copyright © 2016 Mozilla Foundation
*
* This program is made available under an ISC-style license. See the
* accompanying file LICENSE for details.
*/
#ifndef _CUBEB_SLES_H_
#define _CUBEB_SLES_H_
#include <SLES/OpenSLES.h>
static SLresult
2022-08-05 07:28:17 +00:00
cubeb_get_sles_engine(SLObjectItf * pEngine, SLuint32 numOptions,
2020-01-10 04:59:53 +00:00
const SLEngineOption * pEngineOptions,
SLuint32 numInterfaces,
const SLInterfaceID * pInterfaceIds,
const SLboolean * pInterfaceRequired)
{
2022-08-05 07:28:17 +00:00
return slCreateEngine(pEngine, numOptions, pEngineOptions, numInterfaces,
pInterfaceIds, pInterfaceRequired);
2020-01-10 04:59:53 +00:00
}
static void
cubeb_destroy_sles_engine(SLObjectItf * self)
{
if (*self != NULL) {
2022-08-05 07:28:17 +00:00
(**self)->Destroy(*self);
*self = NULL;
2020-01-10 04:59:53 +00:00
}
}
static SLresult
cubeb_realize_sles_engine(SLObjectItf self)
{
return (*self)->Realize(self, SL_BOOLEAN_FALSE);
}
#endif