zenilib: zenilib/jni/external/openal-soft/Alc/backends/loopback.c Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loopback.c
Go to the documentation of this file.
1
21 #include "config.h"
22
23 #include <stdlib.h>
24
25 #include "alMain.h"
26 #include "alu.h"
27
28
29 static ALCenum loopback_open_playback(ALCdevice *device, const ALCchar *deviceName)
30 {
31 device->DeviceName = strdup(deviceName);
32 return ALC_NO_ERROR;
33 }
34
35 static void loopback_close_playback(ALCdevice *device)
36 {
37 (void)device;
38 }
39
40 static ALCboolean loopback_reset_playback(ALCdevice *device)
41 {
42 SetDefaultWFXChannelOrder(device);
43 return ALC_TRUE;
44 }
45
46 static ALCboolean loopback_start_playback(ALCdevice *device)
47 {
48 return ALC_TRUE;
49 (void)device;
50 }
51
52 static void loopback_stop_playback(ALCdevice *device)
53 {
54 (void)device;
55 }
56
57
58 static const BackendFuncs loopback_funcs = {
59 loopback_open_playback,
60 loopback_close_playback,
61 loopback_reset_playback,
62 loopback_start_playback,
63 loopback_stop_playback,
64 NULL,
65 NULL,
66 NULL,
67 NULL,
68 NULL,
69 NULL,
70 ALCdevice_LockDefault,
71 ALCdevice_UnlockDefault,
72 ALCdevice_GetLatencyDefault
73 };
74
75 ALCboolean alc_loopback_init(BackendFuncs *func_list)
76 {
77 *func_list = loopback_funcs;
78 return ALC_TRUE;
79 }
80
81 void alc_loopback_deinit(void)
82 {
83 }
84
85 void alc_loopback_probe(enum DevProbe type)
86 {
87 (void)type;
88 }
ALC_TRUE
#define ALC_TRUE
Definition: alc.h:84
type
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
Definition: gl2ext.h:845
void
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1824
BackendFuncs
Definition: alMain.h:388
strdup
char * strdup(const char *inStr)
Definition: strdup.c:6
NULL
#define NULL
Definition: ftobjs.h:61
alc_loopback_init
ALCboolean alc_loopback_init(BackendFuncs *func_list)
Definition: loopback.c:75
alu.h
ALCdevice_struct
Definition: alMain.h:560
ALCdevice_GetLatencyDefault
ALint64 ALCdevice_GetLatencyDefault(ALCdevice *device)
Definition: ALc.c:1285
alc_loopback_probe
void alc_loopback_probe(enum DevProbe type)
Definition: loopback.c:85
ALCchar
char ALCchar
Definition: alc.h:42
alc_loopback_deinit
void alc_loopback_deinit(void)
Definition: loopback.c:81
SetDefaultWFXChannelOrder
void SetDefaultWFXChannelOrder(ALCdevice *device)
Definition: ALc.c:1295
alMain.h
ALC_NO_ERROR
#define ALC_NO_ERROR
Definition: alc.h:102
ALCdevice_LockDefault
void ALCdevice_LockDefault(ALCdevice *device)
Definition: ALc.c:1277
loopback_start_playback
static ALCboolean loopback_start_playback(ALCdevice *device)
Definition: loopback.c:46
ALCboolean
char ALCboolean
Definition: alc.h:39
loopback_funcs
static const BackendFuncs loopback_funcs
Definition: loopback.c:58
loopback_reset_playback
static ALCboolean loopback_reset_playback(ALCdevice *device)
Definition: loopback.c:40
ALCdevice_struct::DeviceName
ALCchar * DeviceName
Definition: alMain.h:575
loopback_stop_playback
static void loopback_stop_playback(ALCdevice *device)
Definition: loopback.c:52
loopback_close_playback
static void loopback_close_playback(ALCdevice *device)
Definition: loopback.c:35
ALCenum
int ALCenum
Definition: alc.h:66
ALCdevice_UnlockDefault
void ALCdevice_UnlockDefault(ALCdevice *device)
Definition: ALc.c:1281
loopback_open_playback
static ALCenum loopback_open_playback(ALCdevice *device, const ALCchar *deviceName)
Definition: loopback.c:29
DevProbe
DevProbe
Definition: alMain.h:383