Oolite
1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
src
Core
OOOpenALController.h
Go to the documentation of this file.
1
/*
2
3
OOOpenALController.h
4
5
Singleton controller for Open AL interfaces
6
7
Oolite
8
Copyright (C) 2004-2013 Giles C Williams and contributors
9
10
This program is free software; you can redistribute it and/or
11
modify it under the terms of the GNU General Public License
12
as published by the Free Software Foundation; either version 2
13
of the License, or (at your option) any later version.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23
MA 02110-1301, USA.
24
25
*/
26
27
#import "
OOOpenAL.h
"
28
29
30
static
NSString *
const
kOOLogSoundInitError
=
@"sound.initialization.error"
;
31
static
NSString *
const
kOOLogSoundLoadingSuccess
=
@"sound.load.success"
;
32
static
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
kOOLogSoundInitError
static NSString *const kOOLogSoundInitError
Definition
OOOpenALController.h:30
kOOLogSoundLoadingSuccess
static NSString *const kOOLogSoundLoadingSuccess
Definition
OOOpenALController.h:31
kOOLogSoundLoadingError
static NSString *const kOOLogSoundLoadingError
Definition
OOOpenALController.h:32
OOOpenAL.h
OOOpenALController
Definition
OOOpenALController.h:36
OOOpenALController::context
ALCcontext * context
Definition
OOOpenALController.h:39
OOOpenALController::device
ALCdevice * device
Definition
OOOpenALController.h:38
Generated by
1.12.0