Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SND_SoundListener.cpp

Go to the documentation of this file.
00001 /*
00002  * SND_SoundListener.cpp

00003  *
00004  * A SoundListener is for sound what a camera is for vision.

00005  *
00006  * Version: $Id: SND_SoundListener_cpp-source.html,v 1.1 2001/02/01 12:25:18 coockie Exp $

00007  */
00008 
00009 #include "SND_SoundListener.h"
00010 
00011 SND_SoundListener::SND_SoundListener() : m_modified(true)
00012 {
00013         m_gain = 1;
00014         m_position[0] = 0.0;
00015         m_position[1] = 0.0;
00016         m_position[2] = 0.0;
00017         m_velocity[0] = 0.0;
00018         m_velocity[1] = 0.0;
00019         m_velocity[2] = 0.0;
00020         m_orientation[0][0] = 0.0;
00021         m_orientation[0][1] = 0.0;
00022         m_orientation[0][2] = 1.0;
00023         m_orientation[1][0] = 0.0;
00024         m_orientation[1][1] = 1.0;
00025         m_orientation[1][2] = 0.0;
00026         m_modified = true;
00027 };
00028 
00029 SND_SoundListener::~SND_SoundListener()

00030 {
00031         ; /* intentionally empty */
00032 };
00033 
00034 void SND_SoundListener::setGain(MT_Scalar gain)

00035 {
00036         m_gain = gain;
00037         m_modified = true;
00038 }
00039 
00040 void SND_SoundListener::setPosition (const MT_Point3& pos)

00041 {
00042         m_position = pos;
00043         m_modified = true;
00044 }
00045 
00046 void SND_SoundListener::setVelocity(const MT_Vector3& vel)

00047 {
00048         m_velocity = vel;
00049         m_modified = true;
00050 }
00051 
00052 void SND_SoundListener::setOrientation(const MT_Matrix3x3& ori)

00053 {
00054         m_orientation = ori;
00055         m_modified = true;
00056 }
00057 

Generated at Thu Feb 1 13:03:12 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000