diff options
Diffstat (limited to 'src/audio/audio.cc')
| -rw-r--r-- | src/audio/audio.cc | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/audio/audio.cc b/src/audio/audio.cc index e1eb0d3..2c8a7c1 100644 --- a/src/audio/audio.cc +++ b/src/audio/audio.cc @@ -182,7 +182,7 @@ size_t loop(size_t source_index, const char *name, float pitch, float gain)  	return buffer_index;  } -void update_listener(math::Vector3f const &location, math::Axis const &axis, math::Vector3f const & velocity) +void update_listener(math::Vector3f const &location, math::Axis const &axis, math::Vector3f const & velocity, float gain)  {  	if (!audio_context)  		return; @@ -195,6 +195,7 @@ void update_listener(math::Vector3f const &location, math::Axis const &axis, mat  		orientation[i+3] = axis.up()[i];  	}  	alListenerfv(AL_ORIENTATION, orientation); +	alListenerf(AL_GAIN, gain);  	//alListenerfv(AL_VELOCITY, velocity.ptr());  } | 
