37#define KEY_VOLUME_CONTROL @"volume_control"
52 if (controller !=
nil)
55 float volume = [[NSUserDefaults standardUserDefaults] oo_floatForKey:KEY_VOLUME_CONTROL defaultValue:0.5];
64+ (void) setMasterVolume:(
float) fraction
69 fraction = OOClamp_0_1_f(fraction);
75 [[NSUserDefaults standardUserDefaults] setFloat:[controller
masterVolume] forKey:KEY_VOLUME_CONTROL];
97- (id) initWithContentsOfFile:(NSString *)path
107 if (
nil == decoder)
return nil;
static const size_t kMaxBufferedSoundSize
#define OOLogGenericSubclassResponsibility()
#define OOLog(class, format,...)
static NSString *const kOOLogSoundLoadingSuccess
static NSString *const kOOLogSoundLoadingError
void setMasterVolume:(ALfloat fraction)
OOOpenALController * sharedController()
void setMasterVolume:(float fraction)