Changeset 2930 for code/branches/sound/src/sound/SoundManager.cc
- Timestamp:
- Apr 27, 2009, 1:18:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound/src/sound/SoundManager.cc
r2899 r2930 30 30 31 31 #include "orxonox/CameraManager.h" 32 #include "orxonox/objects/worldentities/Camera.h" 33 #include "util/Math.h" 32 34 #include "SoundManager.h" 33 35 … … 61 63 this->context_ = alcCreateContext(this->device_, NULL); 62 64 alcMakeContextCurrent(this->context_); 63 ALenum error = alcGetError( );65 ALenum error = alcGetError(this->device_); 64 66 if(error != ALC_NO_ERROR) 65 67 COUT(2) << "OpenAL: Could not create sound context." << std::endl; … … 112 114 Quaternion orient = camera->getOrientation(); 113 115 Vector3 up = orient.xAxis(); // just a wild guess 114 Vec otr3 at = orient.zAxis();116 Vector3 at = orient.zAxis(); 115 117 116 float[3][2] orientation = { { at.x, at.y, at.z },117 { up.x, up.y, up.z }};118 ALfloat* orientation = { at.x, at.y, at.z, 119 up.x, up.y, up.z }; 118 120 119 121 alListenerfv(AL_POSITION, orientation); … … 127 129 } 128 130 129 } // namespace orxonox131 }
Note: See TracChangeset
for help on using the changeset viewer.