Oolite
1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
src
Core
OOSound.h
Go to the documentation of this file.
1
/*
2
3
OOSound.h
4
5
Dispatch header to select the appropriate implementation of OOSound.
6
7
Add new OS imports here. The -DOS_NAME flag in the GNUmakefile
8
will select which one gets compiled.
9
10
11
== Overview of Oolite sound architecture ==
12
There are four public sound classes:
13
* OOSound: represents a sound, i.e. some data that can be played.
14
* OOMusic: subclass of OOSound with support for looping, and the special
15
constraint that only one OOMusic may play at a time.
16
* OOSoundSource: a thing that can play a sound. Each sound played is
17
conceptually played through a sound source, although this can be
18
implicit using OOSound's -play method.
19
* OOSoundReferencePoint: a point in space relative to which a sound source is
20
positioned. Since positional sound is not implemented, this serves
21
no practical purpose.
22
23
24
Oolite
25
Copyright (C) 2004-2014 Giles C Williams and contributors
26
27
This program is free software; you can redistribute it and/or
28
modify it under the terms of the GNU General Public License
29
as published by the Free Software Foundation; either version 2
30
of the License, or (at your option) any later version.
31
32
This program is distributed in the hope that it will be useful,
33
but WITHOUT ANY WARRANTY; without even the implied warranty of
34
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35
GNU General Public License for more details.
36
37
You should have received a copy of the GNU General Public License
38
along with this program; if not, write to the Free Software
39
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
40
MA 02110-1301, USA.
41
42
*/
43
44
#import "
OOCocoa.h
"
45
46
#define OOLITE_OPENAL 1
47
48
#if OOLITE_OPENAL
49
#import "
OOALSound.h
"
50
#import "
OOALMusic.h
"
51
#import "
OOBasicSoundReferencePoint.h
"
52
#else
53
54
#warning No sound implementation selected. Currently, the only option is OOLITE_OPENAL. There are SDL and Mac CoreAudio implementations in the revision history.
55
56
#endif
57
58
#import "
OOSoundSource.h
"
OOALMusic.h
OOALSound.h
OOBasicSoundReferencePoint.h
OOCocoa.h
OOSoundSource.h
Generated by
1.12.0