mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
ALSpeaker::play fix
This commit is contained in:
parent
a82476949c
commit
a149c520c6
1 changed files with 2 additions and 1 deletions
|
|
@ -258,7 +258,8 @@ void ALSpeaker::setLoop(bool loop) {
|
|||
void ALSpeaker::play() {
|
||||
paused = false;
|
||||
stopped = false;
|
||||
AL_CHECK(alSourcef(source, AL_GAIN, 0.0f));
|
||||
auto channel = get_channel(this->channel);
|
||||
AL_CHECK(alSourcef(source, AL_GAIN, volume * channel->getVolume()));
|
||||
AL_CHECK(alSourcePlay(source));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue