2008-03-08 06:51:04 +00:00
|
|
|
#ifndef __OPENAL_H
|
|
|
|
#define __OPENAL_H
|
|
|
|
|
|
|
|
#include <vorbis/vorbisfile.h>
|
|
|
|
|
2008-03-08 06:51:53 +00:00
|
|
|
int AL_Init();
|
2008-03-08 06:51:04 +00:00
|
|
|
void AL_Shutdown();
|
|
|
|
void AL_Update();
|
|
|
|
char *AL_ErrorString(int code);
|
|
|
|
char *ALC_ErrorString(int code);
|
|
|
|
|
2008-03-08 07:46:30 +00:00
|
|
|
void AL_Stop();
|
2008-03-08 06:51:04 +00:00
|
|
|
int AL_isntALmusic();
|
|
|
|
void AL_PlaySong(char *song,int loopflag);
|
|
|
|
void AL_Pause();
|
|
|
|
void AL_Continue();
|
|
|
|
void AL_SetMusicVolume(int volume);
|
|
|
|
|
2008-03-08 06:51:53 +00:00
|
|
|
int openal_disabled;
|
2008-03-22 00:22:48 +00:00
|
|
|
|
|
|
|
typedef struct sounddef
|
|
|
|
{
|
|
|
|
unsigned pos;
|
|
|
|
char *ptrsnd;
|
|
|
|
unsigned size;
|
|
|
|
OggVorbis_File oggStream;
|
|
|
|
} sounddef;
|
2008-03-08 06:51:04 +00:00
|
|
|
#endif
|