Oolite 1.91.0.7604-240417-a536cbe
Loading...
Searching...
No Matches
OOSound.h
Go to the documentation of this file.
1/*
2
3OOSound.h
4
5Dispatch header to select the appropriate implementation of OOSound.
6
7Add new OS imports here. The -DOS_NAME flag in the GNUmakefile
8will select which one gets compiled.
9
10
11== Overview of Oolite sound architecture ==
12There 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
24Oolite
25Copyright (C) 2004-2014 Giles C Williams and contributors
26
27This program is free software; you can redistribute it and/or
28modify it under the terms of the GNU General Public License
29as published by the Free Software Foundation; either version 2
30of the License, or (at your option) any later version.
31
32This program is distributed in the hope that it will be useful,
33but WITHOUT ANY WARRANTY; without even the implied warranty of
34MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35GNU General Public License for more details.
36
37You should have received a copy of the GNU General Public License
38along with this program; if not, write to the Free Software
39Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
40MA 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"
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"