Audaspace 1.4.0
A high level audio library.
Loading...
Searching...
No Matches
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{
54public:
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
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
134
139 virtual void setDistanceModel(DistanceModel model)=0;
140};
141
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
#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
DistanceModel
Possible distance models for the 3D device.
Definition: I3DDevice.h:35
Defines the Vector3 and Quaternion classes.
The I3DDevice interface represents an output device for 3D sound.
Definition: I3DDevice.h:53
virtual float getSpeedOfSound() const =0
Retrieves the speed of sound.
virtual Vector3 getListenerVelocity() const =0
Retrieves the listener velocity.
virtual void setSpeedOfSound(float speed)=0
Sets the speed of sound.
virtual void setDopplerFactor(float factor)=0
Sets the doppler factor.
virtual void setDistanceModel(DistanceModel model)=0
Sets the distance model.
virtual DistanceModel getDistanceModel() const =0
Retrieves the distance model.
virtual void setListenerVelocity(const Vector3 &velocity)=0
Sets the listener velocity.
virtual void setListenerOrientation(const Quaternion &orientation)=0
Sets the listener orientation.
virtual void setListenerLocation(const Vector3 &location)=0
Sets the listener location.
virtual Quaternion getListenerOrientation() const =0
Retrieves the listener orientation.
virtual Vector3 getListenerLocation() const =0
Retrieves the listener location.
virtual float getDopplerFactor() const =0
Retrieves the doppler factor.
This class represents a quaternion used for 3D rotations.
Definition: Math3D.h:206
This class represents a 3 dimensional vector.
Definition: Math3D.h:36