Fix a crash on program replacement.
commit77dbcb1039855f23e420061ee81305820843af6c
authorKrzysztof Foltman <wdev@foltman.com>
Tue, 9 Apr 2013 22:13:31 +0000 (9 23:13 +0100)
committerKrzysztof Foltman <wdev@foltman.com>
Tue, 9 Apr 2013 22:13:31 +0000 (9 23:13 +0100)
tree74453bfd56302541d6de220fbc2592ea1b6e9da2
parent43a5c89538feca56b7234360f752b5ae4522f057
Fix a crash on program replacement.

The crash was caused by incorrect condition in release_program_voices_execute,
which resulted in is-still-running check being omitted after 1st iteration.
Currently, the current program is changed on the channel, then in any channel
where the old program has been active, the notes are stopped until no voices
are active.
sampler.c