Commit 238a7657 authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

Fadeout doesn't happen until note off!

git-svn-id: https://pimpmobile.svn.sourceforge.net/svnroot/pimpmobile/trunk@428 3d5ecaf0-f903-0410-b953-c2c1a4d75763
parent ce1ca21e
...@@ -27,7 +27,8 @@ static int pimp_channel_get_volume(struct pimp_channel_state *chan) ...@@ -27,7 +27,8 @@ static int pimp_channel_get_volume(struct pimp_channel_state *chan)
/* fadeout */ /* fadeout */
volume = (volume * chan->fadeout) >> 16; volume = (volume * chan->fadeout) >> 16;
chan->fadeout -= chan->instrument->volume_fadeout; if (!chan->sustain) chan->fadeout -= chan->instrument->volume_fadeout;
if (chan->fadeout <= 0) if (chan->fadeout <= 0)
{ {
/* TODO: kill sample */ /* TODO: kill sample */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment