mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
audio settings menu
This commit is contained in:
parent
9150af19ea
commit
a971f6dccf
6 changed files with 80 additions and 3 deletions
|
|
@ -153,6 +153,10 @@ void LevelScreen::update(float delta) {
|
|||
|
||||
auto player = controller->getPlayer();
|
||||
auto camera = player->camera;
|
||||
|
||||
bool paused = hud->isPause();
|
||||
audio::get_channel("regular")->setPaused(paused);
|
||||
audio::get_channel("ambient")->setPaused(paused);
|
||||
audio::set_listener(
|
||||
camera->position-camera->dir,
|
||||
player->hitbox->velocity,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue