-
Notifications
You must be signed in to change notification settings - Fork 0
3D sound
MMaillard edited this page Jun 27, 2024
·
1 revision
Sound sfx("../Sound/sfx1.wav");
sfx.enable3D(true);
sfx.setPosition(-10.f, 15.f, 0.f);
sfx.play()Sound sfx("../Sound/sfx1.wav");
sfx.enable3D(true);
sfx.setPosition(-10.f, 15.f, 0.f);
sfx.play()
sfx.movePosition(1.f, 0.f, 0.f);Audio_System* audioSystem = Audio_System::getExistingInstance();
audioSystem->setListenerPosition(5.f, 15.f, 0.f);Audio_System* audioSystem = Audio_System::getExistingInstance();
audioSystem->moveListenerPosition(1.f, 0.f, 0.f);