diff options
| author | Crystalwarrior <Varsash@Gmail.com> | 2021-01-27 20:20:26 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-27 20:20:26 +0300 |
| commit | 0041352b1876f4b391f2beef7ae05008483b8fb7 (patch) | |
| tree | 919a1a13e10c91a71735feff58b6e1a6eff20fb0 /src/aomusicplayer.cpp | |
| parent | b394eb84fac370c89fdba551369234d7da68ac1c (diff) | |
Update src/aomusicplayer.cpp
Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
Diffstat (limited to 'src/aomusicplayer.cpp')
| -rw-r--r-- | src/aomusicplayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aomusicplayer.cpp b/src/aomusicplayer.cpp index e090375a..8a3142eb 100644 --- a/src/aomusicplayer.cpp +++ b/src/aomusicplayer.cpp @@ -96,7 +96,7 @@ void AOMusicPlayer::play(QString p_song, int channel, bool loop, BASS_ChannelLock(oldstream, false); } - if (effect_flags & FADE_OUT) { + if ((effect_flags & FADE_OUT) && m_volume[channel] > 0) { // Fade out the other sample and stop it (due to -1) BASS_ChannelSlideAttribute(oldstream, BASS_ATTRIB_VOL | BASS_SLIDE_LOG, -1, 4000); |
