Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 27, 2009, 1:18:13 PM (15 years ago)
Author:
erwin
Message:

Sound: Added building things, corrected some typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound/src/sound/SoundManager.cc

    r2899 r2930  
    3030
    3131#include "orxonox/CameraManager.h"
     32#include "orxonox/objects/worldentities/Camera.h"
     33#include "util/Math.h"
    3234#include "SoundManager.h"
    3335
     
    6163        this->context_ = alcCreateContext(this->device_, NULL);
    6264        alcMakeContextCurrent(this->context_);
    63         ALenum error = alcGetError();
     65        ALenum error = alcGetError(this->device_);
    6466        if(error != ALC_NO_ERROR)
    6567            COUT(2) << "OpenAL: Could not create sound context." << std::endl;
     
    112114        Quaternion orient = camera->getOrientation();
    113115        Vector3 up = orient.xAxis(); // just a wild guess
    114         Vecotr3 at = orient.zAxis();
     116        Vector3 at = orient.zAxis();
    115117
    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 };
    118120
    119121        alListenerfv(AL_POSITION, orientation);
     
    127129    }
    128130
    129 } // namespace orxonox
     131}  
Note: See TracChangeset for help on using the changeset viewer.