#include <stdlib.h>
#include <string.h>
+#include "Quaternions.h"
#include "openal_wrapper.h"
#include "Sounds.h"
return true;
}
+AL_API signed char OPENAL_3D_SetAttributes_(int channel, const XYZ &pos, const float *vel)
+{
+ if (!initialized) return false;
+ if ((channel < 0) || (channel >= num_channels)) return false;
+
+ set_channel_position(channel, pos.x, pos.y, -pos.z);
+
+ return true;
+}
+
AL_API signed char OPENAL_Init(int mixrate, int maxsoftwarechannels, unsigned int flags)
{
if (initialized) return false;
return true;
}
-extern int channels[100];
-extern OPENAL_STREAM * strm[20];
+extern int channels[];
extern "C" void PlaySoundEx(int chan, OPENAL_SAMPLE *sptr, OPENAL_DSPUNIT *dsp, signed char startpaused)
{