zenilib
0.5.3.0
|
#include "config.h"
#include <stdlib.h>
#include "alMain.h"
#include "alu.h"
#include <SLES/OpenSLES.h>
#include <SLES/OpenSLES_Android.h>
Go to the source code of this file.
Macros | |
#define | PRINTERR(x, s) |
#define | SLEngineItf_CreateAudioPlayer(a, b, c, d, e, f, g) ((*(a))->CreateAudioPlayer((a),(b),(c),(d),(e),(f),(g))) |
#define | SLEngineItf_CreateOutputMix(a, b, c, d, e) ((*(a))->CreateOutputMix((a),(b),(c),(d),(e))) |
#define | SLObjectItf_Destroy(a) ((*(a))->Destroy((a))) |
#define | SLObjectItf_GetInterface(a, b, c) ((*(a))->GetInterface((a),(b),(c))) |
#define | SLObjectItf_Realize(a, b) ((*(a))->Realize((a),(b))) |
#define | SLPlayItf_SetPlayState(a, b) ((*(a))->SetPlayState((a),(b))) |
Functions | |
void | alc_opensl_deinit (void) |
ALCboolean | alc_opensl_init (BackendFuncs *func_list) |
void | alc_opensl_probe (enum DevProbe type) |
static SLuint32 | GetChannelMask (enum DevFmtChannels chans) |
static void | opensl_callback (SLAndroidSimpleBufferQueueItf bq, void *context) |
static void | opensl_close_playback (ALCdevice *Device) |
static ALCenum | opensl_open_playback (ALCdevice *Device, const ALCchar *deviceName) |
static ALCboolean | opensl_reset_playback (ALCdevice *Device) |
static ALCboolean | opensl_start_playback (ALCdevice *Device) |
static void | opensl_stop_playback (ALCdevice *Device) |
static const char * | res_str (SLresult result) |
Variables | |
static const ALCchar | opensl_device [] = "OpenSL" |
static const BackendFuncs | opensl_funcs |
Definition at line 162 of file opensl.c.
Referenced by opensl_callback(), opensl_open_playback(), opensl_reset_playback(), and opensl_start_playback().
#define SLEngineItf_CreateAudioPlayer | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g | |||
) | ((*(a))->CreateAudioPlayer((a),(b),(c),(d),(e),(f),(g))) |
Definition at line 82 of file opensl.c.
Referenced by opensl_reset_playback().
#define SLEngineItf_CreateOutputMix | ( | a, | |
b, | |||
c, | |||
d, | |||
e | |||
) | ((*(a))->CreateOutputMix((a),(b),(c),(d),(e))) |
Definition at line 81 of file opensl.c.
Referenced by opensl_open_playback().
Definition at line 79 of file opensl.c.
Referenced by opensl_close_playback(), opensl_open_playback(), opensl_reset_playback(), and opensl_start_playback().
Definition at line 78 of file opensl.c.
Referenced by opensl_open_playback(), and opensl_start_playback().
Definition at line 77 of file opensl.c.
Referenced by opensl_open_playback(), and opensl_reset_playback().
Definition at line 84 of file opensl.c.
Referenced by opensl_start_playback().
ALCboolean alc_opensl_init | ( | BackendFuncs * | func_list | ) |
Definition at line 422 of file opensl.c.
References ALC_TRUE, and opensl_funcs.
Definition at line 432 of file opensl.c.
References ALL_DEVICE_PROBE, AppendAllDevicesList(), CAPTURE_DEVICE_PROBE, and opensl_device.
|
static |
Definition at line 108 of file opensl.c.
References DevFmtMono, DevFmtQuad, DevFmtStereo, DevFmtX51, DevFmtX51Side, DevFmtX61, and DevFmtX71.
Referenced by opensl_reset_playback().
Definition at line 168 of file opensl.c.
References aluMixData(), context, ALCdevice_struct::ExtraData, and PRINTERR.
Referenced by opensl_start_playback().
Definition at line 241 of file opensl.c.
References ALCdevice_struct::ExtraData, free, NULL, and SLObjectItf_Destroy.
Definition at line 181 of file opensl.c.
References ALC_INVALID_VALUE, ALC_NO_ERROR, ALC_OUT_OF_MEMORY, calloc, ALCdevice_struct::DeviceName, ALCdevice_struct::ExtraData, free, NULL, opensl_device, PRINTERR, SLEngineItf_CreateOutputMix, SLObjectItf_Destroy, SLObjectItf_GetInterface, SLObjectItf_Realize, and strdup().
|
static |
Definition at line 260 of file opensl.c.
References ALC_FALSE, ALC_TRUE, BytesFromDevFmt(), ChannelsFromDevFmt(), DevFmtShort, DevFmtStereo, ALCdevice_struct::ExtraData, ALCdevice_struct::FmtChans, ALCdevice_struct::FmtType, ALCdevice_struct::Frequency, GetChannelMask(), NULL, ALCdevice_struct::NumUpdates, PRINTERR, SetDefaultWFXChannelOrder(), SLEngineItf_CreateAudioPlayer, SLObjectItf_Destroy, SLObjectItf_Realize, and ALCdevice_struct::UpdateSize.
|
static |
Definition at line 331 of file opensl.c.
References ALC_FALSE, ALC_TRUE, calloc, ALCdevice_struct::ExtraData, ALCdevice_struct::FmtChans, ALCdevice_struct::FmtType, FrameSizeFromDevFmt(), free, i, NULL, ALCdevice_struct::NumUpdates, opensl_callback(), PRINTERR, SLObjectItf_Destroy, SLObjectItf_GetInterface, SLPlayItf_SetPlayState, and ALCdevice_struct::UpdateSize.
Definition at line 394 of file opensl.c.
References ALCdevice_struct::ExtraData, free, and NULL.
Definition at line 105 of file opensl.c.
Referenced by alc_opensl_probe(), and opensl_open_playback().
|
static |
Definition at line 404 of file opensl.c.
Referenced by alc_opensl_init().