50 NSArray *arguments =
nil;
51 NSEnumerator *argEnum =
nil;
54 arguments = [[NSProcessInfo processInfo] arguments];
55 for (argEnum = [arguments objectEnumerator]; (arg = [argEnum nextObject]); )
57 if ([arg isEqual:
@"-nosound"] || [arg isEqual:
@"--nosound"])
65 device = alcOpenDevice(NULL);
73 if (!alcMakeContextCurrent(
context))
79 if ((error = alGetError()) != AL_NO_ERROR)
83 OOAL(alDistanceModel(AL_NONE));
89- (void) setMasterVolume:(ALfloat) fraction
91 OOAL(alListenerf(AL_GAIN,fraction));
96 ALfloat fraction = 0.0;
97 OOAL(alGetListenerf(AL_GAIN,&fraction));
106 OOAL(alcMakeContextCurrent(NULL));
static OODebugMonitor * sSingleton
#define OOLog(class, format,...)
static NSString *const kOOLogSoundInitError
OOOpenALController * sharedController()