Oolite
Loading...
Searching...
No Matches
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
static
NSString*
const
kOOLogSoundInitError
=
@"sound.initialization.error"
;
30
static
NSString*
const
kOOLogSoundLoadingSuccess
=
@"sound.load.success"
;
31
static
NSString*
const
kOOLogSoundLoadingError
=
@"sound.load.error"
;
32
33
@interface
OOOpenALController
: NSObject {
34
@private
35
ALCdevice*
device
;
36
ALCcontext*
context
;
37
}
38
39
+ (
OOOpenALController
*)sharedController;
40
41
- (void)setMasterVolume:(ALfloat)fraction;
42
- (ALfloat)masterVolume;
43
44
- (void)shutdown;
45
53
- (id)init;
54
55
@end
kOOLogSoundInitError
static NSString *const kOOLogSoundInitError
Definition
OOOpenALController.h:29
kOOLogSoundLoadingSuccess
static NSString *const kOOLogSoundLoadingSuccess
Definition
OOOpenALController.h:30
kOOLogSoundLoadingError
static NSString *const kOOLogSoundLoadingError
Definition
OOOpenALController.h:31
OOOpenAL.h
OOOpenALController
Definition
OOOpenALController.h:33
OOOpenALController::context
ALCcontext * context
Definition
OOOpenALController.h:36
OOOpenALController::device
ALCdevice * device
Definition
OOOpenALController.h:35
src
Core
OOOpenALController.h
Generated by
1.15.0