audio variable
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2125 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
#include "vorbis/vorbisfile.h"
|
||||
#endif
|
||||
|
||||
VARF(audio, 0, 1, 1, initwarning("audio"));
|
||||
|
||||
static bool nosound = true;
|
||||
static bool sourcesavail = true;
|
||||
ALCdevice *device = NULL;
|
||||
@@ -593,6 +595,12 @@ void stopsound()
|
||||
|
||||
void initsound()
|
||||
{
|
||||
if(!audio)
|
||||
{
|
||||
conoutf("audio is disabled");
|
||||
return;
|
||||
}
|
||||
|
||||
alclearerr();
|
||||
device = alcOpenDevice(NULL);
|
||||
if(!alerr() && device)
|
||||
|
||||
Reference in New Issue
Block a user