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:
driAn
2008-05-30 19:25:33 +00:00
parent 694e87f636
commit 5ba614a911
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -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)