mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
Committer: gir
Changes to be committed: modified: src/audio.cpp
This commit is contained in:
parent
4a459cb330
commit
9fb6ca4d89
1 changed files with 3 additions and 3 deletions
|
|
@ -356,10 +356,10 @@ void Audio::setBGM_Volume(int value)
|
|||
}
|
||||
p->bgm_volume = value;
|
||||
p->bgm.lockStream();
|
||||
p->bgm.setVolume(AudioStream::External, ((float)(p->bgm_volume * p->current_bgm_volume))/10000.0f );
|
||||
p->bgm.setVolume(AudioStream::Base, ((float)(p->bgm_volume * p->current_bgm_volume))/10000.0f );
|
||||
p->bgm.unlockStream();
|
||||
p->me.lockStream();
|
||||
p->me.setVolume(AudioStream::External, ((float)(p->bgm_volume * p->current_me_volume))/10000.0f );
|
||||
p->me.setVolume(AudioStream::Base, ((float)(p->bgm_volume * p->current_me_volume))/10000.0f );
|
||||
p->me.unlockStream();
|
||||
}
|
||||
|
||||
|
|
@ -377,7 +377,7 @@ void Audio::setSFX_Volume(int value)
|
|||
}
|
||||
p->sfx_volume = value;
|
||||
p->bgs.lockStream();
|
||||
p->bgs.setVolume(AudioStream::External, ((float)(p->sfx_volume * p->current_bgs_volume))/10000.0f );
|
||||
p->bgs.setVolume(AudioStream::Base, ((float)(p->sfx_volume * p->current_bgs_volume))/10000.0f );
|
||||
p->bgs.unlockStream();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue