Skip to content

Commit b33e290

Browse files
committed
Fixed panning of ambient sounds.
1 parent abdc7bf commit b33e290

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_relative(true);
152153
currentvolume=targetvolume=1e-20f;
153154
sound_source->play();
154155
} catch(std::exception& e) {

0 commit comments

Comments
 (0)