Initial 64-bit recompiler.
Various 64-bit fixes. Various fixes to allow building under MinGW-w64.
This commit is contained in:
parent
5be9127d64
commit
08254b8dfb
15 changed files with 1314 additions and 25 deletions
|
|
@ -4,8 +4,12 @@
|
|||
#include <stdlib.h>
|
||||
#ifdef USE_OPENAL
|
||||
#include <AL/al.h>
|
||||
#ifdef __MINGW64__
|
||||
#include <AL/alc.h>
|
||||
#else
|
||||
#include <AL/alut.h>
|
||||
#endif
|
||||
#endif
|
||||
#include "ibm.h"
|
||||
|
||||
FILE *allog;
|
||||
|
|
@ -18,7 +22,40 @@ ALenum format; // internal format
|
|||
#define BUFLEN SOUNDBUFLEN
|
||||
|
||||
void closeal();
|
||||
#ifdef __MINGW64__
|
||||
ALvoid alutInit(ALint *argc,ALbyte **argv)
|
||||
{
|
||||
ALCcontext *Context;
|
||||
ALCdevice *Device;
|
||||
|
||||
//Open device
|
||||
Device=alcOpenDevice((ALubyte*)"DirectSound3D");
|
||||
//Create context(s)
|
||||
Context=alcCreateContext(Device,NULL);
|
||||
//Set active context
|
||||
alcMakeContextCurrent(Context);
|
||||
//Register extensions
|
||||
}
|
||||
|
||||
ALvoid alutExit(ALvoid)
|
||||
{
|
||||
ALCcontext *Context;
|
||||
ALCdevice *Device;
|
||||
|
||||
//Unregister extensions
|
||||
|
||||
//Get active context
|
||||
Context=alcGetCurrentContext();
|
||||
//Get device for active context
|
||||
Device=alcGetContextsDevice(Context);
|
||||
//Disable context
|
||||
alcMakeContextCurrent(NULL);
|
||||
//Release context(s)
|
||||
alcDestroyContext(Context);
|
||||
//Close device
|
||||
alcCloseDevice(Device);
|
||||
}
|
||||
#endif
|
||||
void initalmain(int argc, char *argv[])
|
||||
{
|
||||
#ifdef USE_OPENAL
|
||||
|
|
|
|||
Loading…
Reference in a new issue