~ubuntu-branches/debian/sid/ember/sid

« back to all changes in this revision

Viewing changes to src/services/sound/SoundSource.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2009-10-22 23:21:17 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20091022232117-isr8u3402qmu7ilo
Tags: 0.5.7-1
* New upstream release.
  - Compile against current ogre (Closes: #551431)
  - Removed debian/patches/ember-gcc4.4.patch. Merged upstream.
  - Updated Depends on ember-media.
* Add libboost-thread-dev tp Build-Depends.
* Make debian/rules independent from upstream version.
* Updated watch file to allow automatic download of new upstream
  tarballs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
// along with this program; if not, write to the Free Software
21
21
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.//
22
22
//
 
23
 
23
24
#ifdef HAVE_CONFIG_H
24
25
#include "config.h"
25
26
#endif
26
27
 
27
28
#include "SoundSource.h"
 
29
 
 
30
#include "SoundGeneral.h"
 
31
 
28
32
#include "framework/LoggingInstance.h"
29
33
#include "framework/Exception.h"
30
34
 
55
59
 
56
60
}
57
61
 
58
 
 
59
62
SoundSource::~SoundSource()
60
63
{
61
64
        alDeleteSources(1, &mALSource);
62
65
        SoundGeneral::checkAlError("Deleting sound source.");
63
66
}
64
67
 
65
 
void SoundSource::setPosition(const WFMath::Point<3> &pos)
 
68
void SoundSource::setPosition(const WFMath::Point<3>& pos)
66
69
{
67
70
        alSource3f(mALSource, AL_POSITION, pos.x(), pos.y(), pos.z());
68
71
        SoundGeneral::checkAlError("Setting sound source position.");
69
72
}
70
73
 
71
 
void SoundSource::setVelocity(const WFMath::Vector<3> &vel)
 
74
void SoundSource::setVelocity(const WFMath::Vector<3>& vel)
72
75
{
73
76
        alSource3f(mALSource, AL_VELOCITY, vel.x(), vel.y(), vel.z());
74
77
        SoundGeneral::checkAlError("Setting sound source velocity.");