ensure reference distance is set on positional sounds

This commit is contained in:
darkrose 2015-03-07 14:45:52 +10:00
parent e9b8555925
commit c0e7c5d6b7
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ public:
alSourcei(sound->source_id, AL_SOURCE_RELATIVE, false);
alSource3f(sound->source_id, AL_POSITION, pos.X, pos.Y, pos.Z);
alSource3f(sound->source_id, AL_VELOCITY, 0, 0, 0);
//alSourcef(sound->source_id, AL_REFERENCE_DISTANCE, 30.0);
alSourcef(sound->source_id, AL_REFERENCE_DISTANCE, 30.0);
}
};