Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOOpenALController.h
Go to the documentation of this file.
1/*
2
3OOOpenALController.h
4
5Singleton controller for Open AL interfaces
6
7Oolite
8Copyright (C) 2004-2013 Giles C Williams and contributors
9
10This program is free software; you can redistribute it and/or
11modify it under the terms of the GNU General Public License
12as published by the Free Software Foundation; either version 2
13of the License, or (at your option) any later version.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23MA 02110-1301, USA.
24
25*/
26
27#import "OOOpenAL.h"
28
29
30static NSString * const kOOLogSoundInitError = @"sound.initialization.error";
31static NSString * const kOOLogSoundLoadingSuccess = @"sound.load.success";
32static NSString * const kOOLogSoundLoadingError = @"sound.load.error";
33
34
35@interface OOOpenALController : NSObject
36{
37@private
38 ALCdevice *device;
39 ALCcontext *context;
40}
41
42+ (OOOpenALController *) sharedController;
43
44- (void) setMasterVolume:(ALfloat) fraction;
45- (ALfloat) masterVolume;
46
47- (void) shutdown;
48
56- (id) init;
57
58@end
static NSString *const kOOLogSoundInitError
static NSString *const kOOLogSoundLoadingSuccess
static NSString *const kOOLogSoundLoadingError