diff --git a/src/audio/AL/ALAudio.cpp b/src/audio/AL/ALAudio.cpp index 048a8630a..21ff330d6 100644 --- a/src/audio/AL/ALAudio.cpp +++ b/src/audio/AL/ALAudio.cpp @@ -485,6 +485,8 @@ ALAudio::ALAudio(ALCdevice* device, ALCcontext* context) for (auto& name : inputDevices) { logger.info() << " " << name; } + + alDopplerFactor(1.0 / 3.0); } ALAudio::~ALAudio() { @@ -654,6 +656,7 @@ void ALAudio::setListener( ) { ALfloat listenerOri[] = {at.x, at.y, at.z, up.x, up.y, up.z}; + logger.info() << "velcotiy: " << glm::length(velocity); AL_CHECK(alListener3f(AL_POSITION, position.x, position.y, position.z)); AL_CHECK(alListener3f(AL_VELOCITY, velocity.x, velocity.y, velocity.z)); AL_CHECK(alListenerfv(AL_ORIENTATION, listenerOri));