helper functions/header for openal

This was SVN commit r828.
This commit is contained in:
janwas 2004-07-28 11:34:40 +00:00
parent 77b3943082
commit 777abc8edb
2 changed files with 33 additions and 0 deletions

23
source/lib/oal.cpp Executable file
View File

@ -0,0 +1,23 @@
#include "precompiled.h"
#include "lib.h"
#include "oal.h"
#ifdef _MSC_VER
#pragma comment(lib, "openal32.lib")
#pragma comment(lib, "alut.lib")
#endif
int oal_Init()
{
ONCE(alutInit(0, 0));
return 0;
}
int oal_Shutdown()
{
alutExit();
return 0;
}

10
source/lib/oal.h Executable file
View File

@ -0,0 +1,10 @@
#ifdef __APPLE__
# include <OpenAL/alut.h>
#else
# include <AL/al.h>
# include <AL/alut.h>
#endif
extern int oal_Init();
extern int oal_Shutdown();