mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
ALSpeaker start volume fix + 'master' channel is now forbidden to use in Lua
This commit is contained in:
parent
9e6b8caa94
commit
3b3c5f081c
2 changed files with 6 additions and 2 deletions
|
|
@ -259,7 +259,7 @@ void ALSpeaker::play() {
|
|||
paused = false;
|
||||
stopped = false;
|
||||
auto channel = get_channel(this->channel);
|
||||
AL_CHECK(alSourcef(source, AL_GAIN, volume * channel->getVolume()));
|
||||
AL_CHECK(alSourcef(source, AL_GAIN, volume * channel->getVolume() * get_channel(0)->getVolume()));
|
||||
AL_CHECK(alSourcePlay(source));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue