Rename qal_api.c to unix/qal.c and qal_api.h to unix/header/qal.h.

Both files are platform dependend and won't work on non unixoid
platforms.
This commit is contained in:
Yamagi Burmeister 2012-04-24 14:20:01 +00:00
parent bf6d491af3
commit f836cef4c4
5 changed files with 12 additions and 5 deletions

View file

@ -252,7 +252,6 @@ CLIENT_OBJS_ := \
src/client/menu/menu.o \ src/client/menu/menu.o \
src/client/menu/qmenu.o \ src/client/menu/qmenu.o \
src/client/menu/videomenu.o \ src/client/menu/videomenu.o \
src/client/sound/qal_api.o \
src/client/sound/snd_al.o \ src/client/sound/snd_al.o \
src/client/sound/snd_dma.o \ src/client/sound/snd_dma.o \
src/client/sound/snd_mem.o \ src/client/sound/snd_mem.o \
@ -300,6 +299,7 @@ CLIENT_OBJS_ := \
src/unix/hunk.o \ src/unix/hunk.o \
src/unix/main.o \ src/unix/main.o \
src/unix/network.o \ src/unix/network.o \
src/unix/qal.o \
src/unix/signalhandler.o \ src/unix/signalhandler.o \
src/unix/system.o \ src/unix/system.o \
src/unix/vid.o src/unix/vid.o

View file

@ -25,8 +25,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifdef USE_OPENAL #ifdef USE_OPENAL
#include "../header/client.h" #include "../header/client.h"
#include "../../unix/header/qal.h"
#include "header/local.h" #include "header/local.h"
#include "header/qal_api.h"
#include "header/vorbis.h" #include "header/vorbis.h"
// translates from AL coordinate system to quake // translates from AL coordinate system to quake

View file

@ -27,9 +27,9 @@
*/ */
#include "../header/client.h" #include "../header/client.h"
#include "../../unix/header/qal.h"
#include "header/local.h" #include "header/local.h"
#include "header/vorbis.h" #include "header/vorbis.h"
#include "header/qal_api.h"
void S_Play ( void ); void S_Play ( void );
void S_SoundList ( void ); void S_SoundList ( void );

View file

@ -26,6 +26,8 @@
* ======================================================================= * =======================================================================
*/ */
#ifdef USE_OPENAL
#ifndef _QAL_API_H_ #ifndef _QAL_API_H_
#define _QAL_API_H_ #define _QAL_API_H_
@ -126,4 +128,5 @@ qboolean QAL_Init(void);
void QAL_Shutdown(void); void QAL_Shutdown(void);
#endif /* _QAL_API_H_ */ #endif /* _QAL_API_H_ */
#endif /* USE_OPENAL */

View file

@ -29,13 +29,15 @@
* ======================================================================= * =======================================================================
*/ */
#ifdef USE_OPENAL
#include <dlfcn.h> #include <dlfcn.h>
#include <AL/al.h> #include <AL/al.h>
#include <AL/alc.h> #include <AL/alc.h>
#include <AL/alext.h> #include <AL/alext.h>
#include "../../common/header/common.h" #include "../common/header/common.h"
#include "header/qal_api.h" #include "header/qal.h"
static ALCcontext *context; static ALCcontext *context;
static ALCdevice *device; static ALCdevice *device;
@ -483,3 +485,5 @@ QAL_Init()
return true; return true;
} }
#endif /* USE_OPENAL */