doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
stubs.cpp
Go to the documentation of this file.
1 /*
2 ===========================================================================
3 
4 Doom 3 GPL Source Code
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
6 
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
8 
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
21 
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
23 
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
25 
26 ===========================================================================
27 */
28 #include "../idlib/precompiled.h"
29 #include "../sound/snd_local.h"
30 
31 AL_API ALenum AL_APIENTRY alGetError() {
32  return AL_NO_ERROR;
33 }
34 
35 AL_API ALboolean AL_APIENTRY alIsSource( ALuint sid ) {
36  return AL_FALSE;
37 }
38 
39 AL_API void AL_APIENTRY alGenBuffers( ALsizei n, ALuint* buffers ) { }
40 
41 AL_API void AL_APIENTRY alSourceStop( ALuint sid ) { }
42 
43 AL_API void AL_APIENTRY alGetSourcei( ALuint sid, ALenum pname, ALint* value ) { }
44 
45 AL_API ALint AL_APIENTRY alGetInteger( ALenum param ) { return 0; }
46 
47 ALC_API void ALC_APIENTRY alcSuspendContext( ALCcontext *alcHandle ) { }
48 
49 ALC_API ALCdevice * ALC_APIENTRY alcOpenDevice( const ALchar *tokstr ) {
50  return NULL;
51 }
52 
53 AL_API void AL_APIENTRY alDeleteBuffers( ALsizei n, const ALuint* buffers ) { }
54 
55 AL_API ALboolean AL_APIENTRY alIsExtensionPresent( const ALchar* fname ) {
56  return AL_FALSE;
57 }
58 
59 AL_API void AL_APIENTRY alBufferData( ALuint buffer,
60  ALenum format,
61  const ALvoid* data,
62  ALsizei size,
63  ALsizei freq ) { }
64 
65 ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent( ALCcontext *alcHandle ) {
66  return 0;
67 }
68 
69 ALC_API ALCvoid ALC_APIENTRY alcProcessContext( ALCcontext *alcHandle ) {
70  return;
71 }
72 
73 ALC_API ALCvoid ALC_APIENTRY alcDestroyContext( ALCcontext *alcHandle ) {
74  return;
75 }
76 
77 ALC_API const ALCchar * ALC_APIENTRY alcGetString( ALCdevice *deviceHandle, ALCenum token ) {
78  return NULL;
79 }
80 
81 AL_API void AL_APIENTRY alBufferData( ALuint buffer,
82  ALenum format,
83  ALvoid* data,
84  ALsizei size,
85  ALsizei freq ) { }
86 
87 AL_API void AL_APIENTRY alDeleteBuffers( ALsizei n, ALuint* buffers ) { }
88 
89 AL_API ALboolean AL_APIENTRY alIsExtensionPresent( ALubyte* fname ) {
90  return AL_FALSE;
91 }
92 
93 AL_API void AL_APIENTRY alDeleteSources( ALsizei n, const ALuint* sources ) { }
94 
95 AL_API ALenum AL_APIENTRY alGetEnumValue( const ALchar* ename ) {
96  return 0;
97 }
98 
99 AL_API void* AL_APIENTRY alGetProcAddress( const ALchar* fname ) {
100  return NULL;
101 }
102 
103 ALC_API ALCcontext * ALC_APIENTRY alcCreateContext( ALCdevice *dev,
104  const ALCint* attrlist ) {
105  return NULL;
106 }
107 
108 ALC_API ALCdevice * ALC_APIENTRY alcOpenDevice( ALubyte *tokstr ) {
109  return NULL;
110 }
111 
112 AL_API void AL_APIENTRY alListenerfv( ALenum pname, const ALfloat* param ) { }
113 
114 AL_API void AL_APIENTRY alSourceQueueBuffers( ALuint sid, ALsizei numEntries, const ALuint *bids ) { }
115 
116 AL_API void AL_APIENTRY alSourcei( ALuint sid, ALenum param, ALint value ) { }
117 
118 AL_API void AL_APIENTRY alListenerf( ALenum pname, ALfloat param ) { }
119 
120 ALC_API ALCboolean ALC_APIENTRY alcCloseDevice( ALCdevice *dev ) { return false; }
121 
122 AL_API ALboolean AL_APIENTRY alIsBuffer( ALuint buffer ) {
123  return AL_FALSE;
124 }
125 
126 AL_API void AL_APIENTRY alSource3f( ALuint sid, ALenum param,
127  ALfloat f1, ALfloat f2, ALfloat f3 ) { }
128 
129 AL_API void AL_APIENTRY alGenSources( ALsizei n, ALuint* sources ) { }
130 
131 AL_API void AL_APIENTRY alSourcef( ALuint sid, ALenum param, ALfloat value ) { }
132 
133 AL_API void AL_APIENTRY alSourceUnqueueBuffers( ALuint sid, ALsizei numEntries, ALuint *bids ) { }
134 
135 AL_API void AL_APIENTRY alSourcePlay( ALuint sid ) { }
void ALCvoid
ALC void type.
Definition: alctypes.h:60
GLsizei const GLfloat * value
Definition: glext.h:3614
int ALint
OpenAL 32bit signed integer type.
Definition: altypes.h:48
AL_API void AL_APIENTRY alSourceStop(ALuint sid)
Stop a source, temporarily remove it from the mixer list, and reset its internal state to pre-Play...
Definition: stubs.cpp:41
AL_API void AL_APIENTRY alGenBuffers(ALsizei n, ALuint *buffers)
BUFFER Buffer objects are storage space for sample data.
Definition: stubs.cpp:39
AL_API void AL_APIENTRY alDeleteSources(ALsizei n, const ALuint *sources)
Definition: stubs.cpp:93
ALC_API ALCvoid ALC_APIENTRY alcProcessContext(ALCcontext *alcHandle)
Definition: stubs.cpp:69
GLenum GLsizei GLenum format
Definition: glext.h:2846
AL_API void AL_APIENTRY alListenerfv(ALenum pname, const ALfloat *param)
Definition: stubs.cpp:112
GLfloat param
Definition: glext.h:3038
GLenum GLsizei n
Definition: glext.h:3705
AL_API void *AL_APIENTRY alGetProcAddress(const ALchar *fname)
Definition: stubs.cpp:99
ALC_API const ALCchar *ALC_APIENTRY alcGetString(ALCdevice *deviceHandle, ALCenum token)
Definition: stubs.cpp:77
AL_API ALboolean AL_APIENTRY alIsSource(ALuint sid)
Verify a handle is a valid Source.
Definition: stubs.cpp:35
const GLuint * buffers
Definition: glext.h:3109
unsigned char ALubyte
OpenAL 8bit unsigned byte.
Definition: altypes.h:36
#define AL_NO_ERROR
Errors: No Error.
Definition: altypes.h:265
float ALfloat
OpenAL 32bit floating point type.
Definition: altypes.h:51
ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent(ALCcontext *alcHandle)
Definition: stubs.cpp:65
AL_API void AL_APIENTRY alGetSourcei(ALuint sid, ALenum pname, ALint *value)
Get an integer parameter for a Source object.
Definition: stubs.cpp:43
unsigned ALuint
OpenAL 32bit unsigned integer type.
Definition: altypes.h:45
AL_API ALenum AL_APIENTRY alGetError()
Error support.
Definition: stubs.cpp:31
unsigned int ALsizei
OpenAL 32bit type.
Definition: altypes.h:57
char ALCboolean
OpenAL cross platform audio library Copyright (C) 1999-2000 by authors.
Definition: alctypes.h:30
char ALboolean
OpenAL cross platform audio library Copyright (C) 1999-2000 by authors.
Definition: altypes.h:30
int ALCint
ALC 32bit signed integer type.
Definition: alctypes.h:48
ALC_API ALCdevice *ALC_APIENTRY alcOpenDevice(const ALchar *tokstr)
Definition: stubs.cpp:49
#define NULL
Definition: Lib.h:88
ALC_API ALCvoid ALC_APIENTRY alcDestroyContext(ALCcontext *alcHandle)
Definition: stubs.cpp:73
AL_API void AL_APIENTRY alDeleteBuffers(ALsizei n, const ALuint *buffers)
Definition: stubs.cpp:53
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:2853
GLuint buffer
Definition: glext.h:3108
ALCvoid ALCdevice
Definition: alc.h:28
AL_API void AL_APIENTRY alSource3f(ALuint sid, ALenum param, ALfloat f1, ALfloat f2, ALfloat f3)
Definition: stubs.cpp:126
AL_API void AL_APIENTRY alBufferData(ALuint buffer, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq)
Definition: stubs.cpp:59
AL_API void AL_APIENTRY alSourceQueueBuffers(ALuint sid, ALsizei numEntries, const ALuint *bids)
Definition: stubs.cpp:114
ALC_API ALCcontext *ALC_APIENTRY alcCreateContext(ALCdevice *dev, const ALCint *attrlist)
Definition: stubs.cpp:103
ALC_API void ALC_APIENTRY alcSuspendContext(ALCcontext *alcHandle)
Definition: stubs.cpp:47
AL_API void AL_APIENTRY alSourcef(ALuint sid, ALenum param, ALfloat value)
Definition: stubs.cpp:131
ALC_API ALCboolean ALC_APIENTRY alcCloseDevice(ALCdevice *dev)
Definition: stubs.cpp:120
#define AL_FALSE
Definition: altypes.h:72
AL_API ALint AL_APIENTRY alGetInteger(ALenum param)
Definition: stubs.cpp:45
AL_API void AL_APIENTRY alGenSources(ALsizei n, ALuint *sources)
SOURCE Source objects are by default localized.
Definition: stubs.cpp:129
void ALvoid
OpenAL void type.
Definition: altypes.h:60
GLenum pname
Definition: glext.h:2847
AL_API void AL_APIENTRY alSourcePlay(ALuint sid)
Activate a source, start replay.
Definition: stubs.cpp:135
GLsizeiptr size
Definition: glext.h:3112
ALCvoid ALCcontext
Definition: alc.h:29
AL_API void AL_APIENTRY alSourcei(ALuint sid, ALenum param, ALint value)
Set an integer parameter for a Source object.
Definition: stubs.cpp:116
AL_API ALboolean AL_APIENTRY alIsBuffer(ALuint buffer)
Definition: stubs.cpp:122
int ALCenum
ALC enumerations.
Definition: alctypes.h:63
AL_API void AL_APIENTRY alListenerf(ALenum pname, ALfloat param)
Listener Gain: default 1.0f.
Definition: stubs.cpp:118
int ALenum
OpenAL enumerations.
Definition: altypes.h:63
AL_API ALenum AL_APIENTRY alGetEnumValue(const ALchar *ename)
Definition: stubs.cpp:95
AL_API ALboolean AL_APIENTRY alIsExtensionPresent(const ALchar *fname)
Definition: stubs.cpp:55
AL_API void AL_APIENTRY alSourceUnqueueBuffers(ALuint sid, ALsizei numEntries, ALuint *bids)
Definition: stubs.cpp:133