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 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (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, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 */ 22 23 #ifndef TITANIC_PROXIMITY_H 24 #define TITANIC_PROXIMITY_H 25 26 #include "audio/mixer.h" 27 #include "common/scummsys.h" 28 29 namespace Titanic { 30 31 enum PositioningMode { POSMODE_NONE = 0, POSMODE_POLAR = 1, POSMODE_VECTOR = 2 }; 32 33 class TTtalker; 34 35 typedef void (*CEndTalkerFn)(TTtalker *talker); 36 37 class CProximity { 38 public: 39 int _channelVolume; 40 int _balance; 41 int _priorSoundHandle; 42 double _frequencyMultiplier; 43 double _frequencyAdjust; 44 bool _repeated; 45 int _channelMode; 46 PositioningMode _positioningMode; 47 double _azimuth; 48 double _range; 49 double _elevation; 50 double _posX; 51 double _posY; 52 double _posZ; 53 bool _hasVelocity; 54 double _velocityX; 55 double _velocityY; 56 double _velocityZ; 57 DisposeAfterUse::Flag _disposeAfterUse; 58 CEndTalkerFn _endTalkerFn; 59 TTtalker *_talker; 60 uint _soundDuration; 61 Audio::Mixer::SoundType _soundType; 62 public: 63 CProximity(); 64 CProximity(Audio::Mixer::SoundType soundType, int volume = 100); 65 }; 66 67 } // End of namespace Titanic 68 69 #endif /* TITANIC_PROXIMITY_H */ 70