]> git.smokeofanarchy.ru Git - space-station-14.git/commit
fix: lobby music volume will be changed on options change without restart (also lobby...
authorFildrance <fildrance@gmail.com>
Sat, 2 Mar 2024 20:40:04 +0000 (23:40 +0300)
committerGitHub <noreply@github.com>
Sat, 2 Mar 2024 20:40:04 +0000 (15:40 -0500)
commit4c87dcd3cb92855df1fa01dea52d2ddd09f2adce
treee7c3669e55480681310e070cfd23895b74c38819
parent4f7facbd73270d38efce72fbb9d0dabd1f432dd2
fix: lobby music volume will be changed on options change without restart (also lobby music not looped anymore) (#25530)

* fix: lobby music volume will be changed on options change without restart (also lobby music not looped anymore)

* refactor: now lobby music is part of ContentAudioSystem. Lobby playlist is used instead of single track. Client now selects next lobby soundtrack after previous finished.

* refactor: incapsulated info on current lobby track in simple record

* refactor: fixed inconsistent naming between song and soundtrack for lobbymusic

* refactor: xml-doc for LobbyPlaylistChangedEvent

* fix: inverted invalid _audio.PlayGlobal check to return only if lobby soundtrack play call failed

---------

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
13 files changed:
Content.Client/Audio/BackgroundAudioSystem.cs [deleted file]
Content.Client/Audio/ContentAudioSystem.LobbyMusic.cs [new file with mode: 0644]
Content.Client/Audio/ContentAudioSystem.cs
Content.Client/GameTicking/Managers/ClientGameTicker.cs
Content.Client/Lobby/LobbyState.cs
Content.Client/Lobby/UI/LobbyGui.xaml.cs
Content.Server/Audio/ContentAudioSystem.cs
Content.Server/GameTicking/GameTicker.Lobby.cs
Content.Server/GameTicking/GameTicker.LobbyMusic.cs [deleted file]
Content.Server/GameTicking/GameTicker.RoundFlow.cs
Content.Server/GameTicking/GameTicker.cs
Content.Shared/Audio/Events/LobbyPlaylistChangedEvent.cs [new file with mode: 0644]
Content.Shared/GameTicking/SharedGameTicker.cs