Audaspace  1.3.0
A high level audio library.
I3DDevice.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright 2009-2016 Jörg Müller
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  ******************************************************************************/
16 
17 #pragma once
18 
25 #include "util/Math3D.h"
26 
28 
35 {
36  DISTANCE_MODEL_INVALID = 0,
37  DISTANCE_MODEL_INVERSE,
38  DISTANCE_MODEL_INVERSE_CLAMPED,
39  DISTANCE_MODEL_LINEAR,
40  DISTANCE_MODEL_LINEAR_CLAMPED,
41  DISTANCE_MODEL_EXPONENT,
42  DISTANCE_MODEL_EXPONENT_CLAMPED
43 };
44 
53 {
54 public:
59  virtual Vector3 getListenerLocation() const=0;
60 
67  virtual void setListenerLocation(const Vector3& location)=0;
68 
73  virtual Vector3 getListenerVelocity() const=0;
74 
81  virtual void setListenerVelocity(const Vector3& velocity)=0;
82 
87  virtual Quaternion getListenerOrientation() const=0;
88 
96  virtual void setListenerOrientation(const Quaternion& orientation)=0;
97 
98 
104  virtual float getSpeedOfSound() const=0;
105 
111  virtual void setSpeedOfSound(float speed)=0;
112 
119  virtual float getDopplerFactor() const=0;
120 
127  virtual void setDopplerFactor(float factor)=0;
128 
133  virtual DistanceModel getDistanceModel() const=0;
134 
139  virtual void setDistanceModel(DistanceModel model)=0;
140 };
141 
This class represents a quaternion used for 3D rotations.
Definition: Math3D.h:205
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition: Audaspace.h:116
#define AUD_API
Used for exporting symbols in the shared library.
Definition: Audaspace.h:93
The I3DDevice interface represents an output device for 3D sound.
Definition: I3DDevice.h:52
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
Defines the Vector3 and Quaternion classes.
This class represents a 3 dimensional vector.
Definition: Math3D.h:35
DistanceModel
Possible distance models for the 3D device.
Definition: I3DDevice.h:34