Oolite
1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
src
Core
OOALSoundMixer.h
Go to the documentation of this file.
1
/*
2
3
OOALSoundMixer.h
4
5
Class responsible for managing and mixing sound channels. This class is an
6
implementation detail. Do not use it directly; use an OOSoundSource to play an
7
OOSound.
8
9
OOALSound - OpenAL sound implementation for Oolite.
10
Copyright (C) 2006-2013 Jens Ayton
11
12
Permission is hereby granted, free of charge, to any person obtaining a copy
13
of this software and associated documentation files (the "Software"), to deal
14
in the Software without restriction, including without limitation the rights
15
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
copies of the Software, and to permit persons to whom the Software is
17
furnished to do so, subject to the following conditions:
18
19
The above copyright notice and this permission notice shall be included in all
20
copies or substantial portions of the Software.
21
22
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
SOFTWARE.
29
30
*/
31
32
#import <Foundation/Foundation.h>
33
34
@class
OOSoundChannel
;
35
36
37
enum
38
{
39
kMixerGeneralChannels
= 32
40
};
41
42
43
@interface
OOSoundMixer
: NSObject
44
{
45
OOSoundChannel
*
_channels
[kMixerGeneralChannels];
46
OOSoundChannel
*
_freeList
;
47
48
uint32_t
_maxChannels
;
49
uint32_t
_playMask
;
50
51
}
52
53
// Singleton accessor
54
+ (id) sharedMixer;
55
56
- (void) update;
57
58
- (
OOSoundChannel
*) popChannel;
59
- (void) pushChannel:(
OOSoundChannel
*)channel;
60
61
@end
kMixerGeneralChannels
@ kMixerGeneralChannels
Definition
OOALSoundMixer.h:39
OOSoundChannel
Definition
OOALSoundChannel.h:41
OOSoundMixer
Definition
OOALSoundMixer.h:44
OOSoundMixer::_freeList
OOSoundChannel * _freeList
Definition
OOALSoundMixer.h:46
OOSoundMixer::_maxChannels
uint32_t _maxChannels
Definition
OOALSoundMixer.h:48
OOSoundMixer::_channels
OOSoundChannel * _channels[kMixerGeneralChannels]
Definition
OOALSoundMixer.h:45
OOSoundMixer::_playMask
uint32_t _playMask
Definition
OOALSoundMixer.h:49
Generated by
1.12.0