Skyscraper
2.0
src
sbs
reverb.h
Go to the documentation of this file.
1
/*
2
Scalable Building Simulator - Reverb Object
3
The Skyscraper Project - Version 2.0
4
Copyright (C)2004-2024 Ryan Thoryk
5
https://www.skyscrapersim.net
6
https://sourceforge.net/projects/skyscraper/
7
Contact - ryan@skyscrapersim.net
8
9
This program is free software; you can redistribute it and/or
10
modify it under the terms of the GNU General Public License
11
as published by the Free Software Foundation; either version 2
12
of the License, or (at your option) any later version.
13
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
18
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
*/
23
24
#ifndef _SBS_REVERB_H
25
#define _SBS_REVERB_H
26
27
namespace
FMOD
{
28
class
System;
29
class
Reverb3D;
30
}
31
32
namespace
SBS
{
33
34
class
SBSIMPEXP
Reverb
:
public
Object
35
{
36
public
:
37
38
Reverb
(
Object
*parent,
const
std::string &name, std::string type,
const
Vector3
&position,
Real
min_distance,
Real
max_distance,
bool
permanent);
39
~Reverb
();
40
Real
GetMinimumDistance();
41
Real
GetMaximumDistance();
42
void
Report(
const
std::string &message);
43
bool
ReportError(
const
std::string &message);
44
void
OnMove(
bool
parent);
45
void
Enable(
bool
value);
46
47
private
:
48
49
//sound system
50
SoundSystem
*
soundsys
;
51
52
FMOD::Reverb3D *
reverb
;
53
float
MinDistance
;
54
float
MaxDistance
;
55
};
56
57
}
58
59
#endif
SBS::Object
Definition
object.h:56
SBS::Reverb
Definition
reverb.h:35
SBS::Reverb::MaxDistance
float MaxDistance
Definition
reverb.h:54
SBS::Reverb::MinDistance
float MinDistance
Definition
reverb.h:53
SBS::Reverb::reverb
FMOD::Reverb3D * reverb
Definition
reverb.h:52
SBS::Reverb::soundsys
SoundSystem * soundsys
Definition
reverb.h:50
SBS::SoundSystem
Definition
soundsystem.h:37
Vector3
Ogre::Vector3 Vector3
Definition
globals.h:58
Real
Ogre::Real Real
Definition
globals.h:57
SBSIMPEXP
#define SBSIMPEXP
Definition
globals.h:53
FMOD
Definition
skyscraper.h:35
SBS
Definition
skyscraper.h:45
Generated by
1.11.0