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 
29 #include "sys/platform.h"
30 
31 #include "sound/snd_local.h"
32 
33 extern "C" {
34 
alGetError()35 AL_API ALenum AL_APIENTRY alGetError() {
36 	return AL_NO_ERROR;
37 }
38 
alIsSource(ALuint sid)39 AL_API ALboolean AL_APIENTRY alIsSource( ALuint sid ) {
40 	return AL_FALSE;
41 }
42 
alGenBuffers(ALsizei n,ALuint * buffers)43 AL_API void AL_APIENTRY alGenBuffers( ALsizei n, ALuint* buffers ) { }
44 
alSourceStop(ALuint sid)45 AL_API void AL_APIENTRY alSourceStop( ALuint sid ) { }
46 
alGetSourcei(ALuint sid,ALenum pname,ALint * value)47 AL_API void AL_APIENTRY alGetSourcei( ALuint sid,  ALenum pname, ALint* value ) { }
48 
alSource3i(ALuint sid,ALenum param,ALint value1,ALint value2,ALint value3)49 AL_API void AL_APIENTRY alSource3i( ALuint sid, ALenum param, ALint value1, ALint value2, ALint value3 ) { }
50 
51 
alGetString(ALenum param)52 AL_API const ALchar* AL_APIENTRY alGetString( ALenum param ) {
53 	return "";
54 }
55 
alGetInteger(ALenum param)56 AL_API ALint AL_APIENTRY alGetInteger( ALenum param ) { return 0; }
57 
alcSuspendContext(ALCcontext * alcHandle)58 ALC_API void ALC_APIENTRY alcSuspendContext( ALCcontext *alcHandle ) { }
59 
alcOpenDevice(const ALchar * tokstr)60 ALC_API ALCdevice * ALC_APIENTRY alcOpenDevice( const ALchar *tokstr ) {
61 	return NULL;
62 }
63 
alcIsExtensionPresent(ALCdevice * device,const ALCchar * extname)64 ALC_API ALCboolean ALC_APIENTRY alcIsExtensionPresent( ALCdevice *device, const ALCchar *extname ) {
65 	return AL_FALSE;
66 }
67 
alcGetIntegerv(ALCdevice * device,ALCenum param,ALCsizei size,ALCint * values)68 ALC_API void ALC_APIENTRY alcGetIntegerv(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *values) {}
69 
alcGetError(ALCdevice * device)70 ALC_API ALCenum ALC_APIENTRY alcGetError(ALCdevice *device) {
71 	return ALC_NO_ERROR;
72 }
73 
alcGetProcAddress(ALCdevice * device,const ALCchar * funcname)74 ALC_API void* ALC_APIENTRY alcGetProcAddress(ALCdevice *device, const ALCchar *funcname) {
75 	return NULL;
76 }
77 
78 
alDeleteBuffers(ALsizei n,const ALuint * buffers)79 AL_API void AL_APIENTRY alDeleteBuffers( ALsizei n, const ALuint* buffers ) { }
80 
alIsExtensionPresent(const ALchar * fname)81 AL_API ALboolean AL_APIENTRY alIsExtensionPresent( const ALchar* fname ) {
82 	return AL_FALSE;
83 }
84 
alBufferData(ALuint buffer,ALenum format,const ALvoid * data,ALsizei size,ALsizei freq)85 AL_API void AL_APIENTRY alBufferData( ALuint   buffer,
86 									ALenum   format,
87 									const ALvoid*    data,
88 									ALsizei  size,
89 									ALsizei  freq ) { }
90 
alcMakeContextCurrent(ALCcontext * alcHandle)91 ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent( ALCcontext *alcHandle ) {
92 	return 0;
93 }
94 
alcProcessContext(ALCcontext * alcHandle)95 ALC_API ALCvoid ALC_APIENTRY alcProcessContext( ALCcontext *alcHandle ) {
96 	return;
97 }
98 
alcDestroyContext(ALCcontext * alcHandle)99 ALC_API ALCvoid ALC_APIENTRY alcDestroyContext( ALCcontext *alcHandle ) {
100 	return;
101 }
102 
alcGetString(ALCdevice * deviceHandle,ALCenum token)103 ALC_API const ALCchar * ALC_APIENTRY alcGetString( ALCdevice *deviceHandle, ALCenum token ) {
104 	return NULL;
105 }
106 
alDeleteSources(ALsizei n,const ALuint * sources)107 AL_API void AL_APIENTRY alDeleteSources( ALsizei n, const ALuint* sources ) { }
108 
alGetEnumValue(const ALchar * ename)109 AL_API ALenum AL_APIENTRY alGetEnumValue( const ALchar* ename ) {
110 	return 0;
111 }
112 
alGetProcAddress(const ALchar * fname)113 AL_API void* AL_APIENTRY alGetProcAddress( const ALchar* fname ) {
114 	return NULL;
115 }
116 
alcCreateContext(ALCdevice * dev,const ALCint * attrlist)117 ALC_API ALCcontext * ALC_APIENTRY alcCreateContext( ALCdevice *dev,
118 												  const ALCint* attrlist ) {
119 	return NULL;
120 }
121 
alListenerfv(ALenum pname,const ALfloat * param)122 AL_API void AL_APIENTRY alListenerfv( ALenum pname, const ALfloat* param ) { }
123 
alSourceQueueBuffers(ALuint sid,ALsizei numEntries,const ALuint * bids)124 AL_API void AL_APIENTRY alSourceQueueBuffers( ALuint sid, ALsizei numEntries, const ALuint *bids ) { }
125 
alSourcei(ALuint sid,ALenum param,ALint value)126 AL_API void AL_APIENTRY alSourcei( ALuint sid, ALenum param, ALint value ) { }
127 
alListenerf(ALenum pname,ALfloat param)128 AL_API void AL_APIENTRY alListenerf( ALenum pname, ALfloat param ) { }
129 
alcCloseDevice(ALCdevice * dev)130 ALC_API ALCboolean ALC_APIENTRY alcCloseDevice( ALCdevice *dev ) { return false; }
131 
alIsBuffer(ALuint buffer)132 AL_API ALboolean AL_APIENTRY alIsBuffer( ALuint buffer ) {
133 	return AL_FALSE;
134 }
135 
alSource3f(ALuint sid,ALenum param,ALfloat f1,ALfloat f2,ALfloat f3)136 AL_API void AL_APIENTRY alSource3f( ALuint sid, ALenum param,
137 								  ALfloat f1, ALfloat f2, ALfloat f3 ) { }
138 
alGenSources(ALsizei n,ALuint * sources)139 AL_API void AL_APIENTRY alGenSources( ALsizei n, ALuint* sources ) { }
140 
alSourcef(ALuint sid,ALenum param,ALfloat value)141 AL_API void AL_APIENTRY alSourcef( ALuint sid, ALenum param, ALfloat value ) { }
142 
alSourceUnqueueBuffers(ALuint sid,ALsizei numEntries,ALuint * bids)143 AL_API void AL_APIENTRY alSourceUnqueueBuffers( ALuint sid, ALsizei numEntries, ALuint *bids ) { }
144 
alSourcePlay(ALuint sid)145 AL_API void AL_APIENTRY alSourcePlay( ALuint sid ) { }
146 
147 } // extern "C"
148