Skip to content

Commit 0261f3b

Browse files
authored
Merge pull request #2172 from Pheazant/ambient-sound-pan-fix
Fixed panning of ambient sounds.
2 parents f14358a + d5a95ed commit 0261f3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/object/ambient_sound.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ AmbientSound::start_playing()
149149

150150
sound_source->set_gain(0);
151151
sound_source->set_looping(true);
152+
sound_source->set_position(m_col.m_bbox.get_middle());
152153
currentvolume=targetvolume=1e-20f;
153154
sound_source->play();
154155
} catch(std::exception& e) {

0 commit comments

Comments
 (0)