ScummVM API documentation
proximity.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef TITANIC_PROXIMITY_H
23#define TITANIC_PROXIMITY_H
24
25#include "audio/mixer.h"
26#include "common/scummsys.h"
27
28namespace Titanic {
29
30enum PositioningMode { POSMODE_NONE = 0, POSMODE_POLAR = 1, POSMODE_VECTOR = 2 };
31
32class TTtalker;
33
34typedef void (*CEndTalkerFn)(TTtalker *talker);
35
37public:
38 int _channelVolume;
39 int _balance;
40 int _priorSoundHandle;
41 double _frequencyMultiplier;
42 double _frequencyAdjust;
43 bool _repeated;
44 int _channelMode;
45 PositioningMode _positioningMode;
46 double _azimuth;
47 double _range;
48 double _elevation;
49 double _posX;
50 double _posY;
51 double _posZ;
52 bool _hasVelocity;
53 double _velocityX;
54 double _velocityY;
55 double _velocityZ;
56 DisposeAfterUse::Flag _disposeAfterUse;
57 CEndTalkerFn _endTalkerFn;
58 TTtalker *_talker;
59 uint _soundDuration;
60 Audio::Mixer::SoundType _soundType;
61public:
62 CProximity();
63 CProximity(Audio::Mixer::SoundType soundType, int volume = 100);
64};
65
66} // End of namespace Titanic
67
68#endif /* TITANIC_PROXIMITY_H */
SoundType
Definition: mixer.h:73
Definition: proximity.h:36
Definition: tt_talker.h:33