Sort all layers before splitting them into upper and lower in preparation for sorted rendering.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
@@ -132,6 +132,9 @@ void Audio::PlayBGM(const std::string_view sound,const bool loop){
|
||||
void Audio::StopBGM(){
|
||||
if(Self().BGMIsPlaying()){
|
||||
BGM¤tTrack=Self().bgm[Self().currentBGM];
|
||||
for(int trackID:currentTrack.GetChannelIDs()){
|
||||
Engine().SetVolume(trackID,0.f);
|
||||
}
|
||||
for(int trackID:currentTrack.GetChannelIDs()){
|
||||
Engine().Stop(trackID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user