helper functions/header for openal
This was SVN commit r828.
This commit is contained in:
parent
77b3943082
commit
777abc8edb
23
source/lib/oal.cpp
Executable file
23
source/lib/oal.cpp
Executable 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
10
source/lib/oal.h
Executable 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();
|
Loading…
Reference in New Issue
Block a user