mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 14:30:48 +00:00
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:
parent
bf6d491af3
commit
f836cef4c4
5 changed files with 12 additions and 5 deletions
2
Makefile
2
Makefile
|
@ -252,7 +252,6 @@ CLIENT_OBJS_ := \
|
|||
src/client/menu/menu.o \
|
||||
src/client/menu/qmenu.o \
|
||||
src/client/menu/videomenu.o \
|
||||
src/client/sound/qal_api.o \
|
||||
src/client/sound/snd_al.o \
|
||||
src/client/sound/snd_dma.o \
|
||||
src/client/sound/snd_mem.o \
|
||||
|
@ -300,6 +299,7 @@ CLIENT_OBJS_ := \
|
|||
src/unix/hunk.o \
|
||||
src/unix/main.o \
|
||||
src/unix/network.o \
|
||||
src/unix/qal.o \
|
||||
src/unix/signalhandler.o \
|
||||
src/unix/system.o \
|
||||
src/unix/vid.o
|
||||
|
|
|
@ -25,8 +25,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#ifdef USE_OPENAL
|
||||
|
||||
#include "../header/client.h"
|
||||
#include "../../unix/header/qal.h"
|
||||
#include "header/local.h"
|
||||
#include "header/qal_api.h"
|
||||
#include "header/vorbis.h"
|
||||
|
||||
// translates from AL coordinate system to quake
|
||||
|
|
|
@ -27,9 +27,9 @@
|
|||
*/
|
||||
|
||||
#include "../header/client.h"
|
||||
#include "../../unix/header/qal.h"
|
||||
#include "header/local.h"
|
||||
#include "header/vorbis.h"
|
||||
#include "header/qal_api.h"
|
||||
|
||||
void S_Play ( void );
|
||||
void S_SoundList ( void );
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
* =======================================================================
|
||||
*/
|
||||
|
||||
#ifdef USE_OPENAL
|
||||
|
||||
#ifndef _QAL_API_H_
|
||||
#define _QAL_API_H_
|
||||
|
||||
|
@ -126,4 +128,5 @@ qboolean QAL_Init(void);
|
|||
void QAL_Shutdown(void);
|
||||
|
||||
#endif /* _QAL_API_H_ */
|
||||
#endif /* USE_OPENAL */
|
||||
|
|
@ -29,13 +29,15 @@
|
|||
* =======================================================================
|
||||
*/
|
||||
|
||||
#ifdef USE_OPENAL
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <AL/al.h>
|
||||
#include <AL/alc.h>
|
||||
#include <AL/alext.h>
|
||||
|
||||
#include "../../common/header/common.h"
|
||||
#include "header/qal_api.h"
|
||||
#include "../common/header/common.h"
|
||||
#include "header/qal.h"
|
||||
|
||||
static ALCcontext *context;
|
||||
static ALCdevice *device;
|
||||
|
@ -483,3 +485,5 @@ QAL_Init()
|
|||
return true;
|
||||
}
|
||||
|
||||
#endif /* USE_OPENAL */
|
||||
|
Loading…
Reference in a new issue