ALSpeaker::play fix
This commit is contained in:
parent
a82476949c
commit
a149c520c6
@ -258,7 +258,8 @@ void ALSpeaker::setLoop(bool loop) {
|
|||||||
void ALSpeaker::play() {
|
void ALSpeaker::play() {
|
||||||
paused = false;
|
paused = false;
|
||||||
stopped = 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));
|
AL_CHECK(alSourcePlay(source));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user