- Fixed: When an instrument's envelope runs out, it does not immediately ramp
to zero. Rather, it lets the remainder of the sample finish playing. SVN r938 (trunk)
This commit is contained in:
parent
52f6549aa0
commit
6ce25fe6c3
4 changed files with 34 additions and 29 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#include "timidity.h"
|
||||
#include "m_swap.h"
|
||||
#include "files.h"
|
||||
#include "templates.h"
|
||||
|
||||
namespace Timidity
|
||||
{
|
||||
|
|
@ -417,7 +418,8 @@ fail:
|
|||
for (j = 0; j < 6; j++)
|
||||
{
|
||||
sp->envelope_rate[j] = convert_envelope_rate(song, patch_data.EnvelopeRate[j]);
|
||||
sp->envelope_offset[j] = convert_envelope_offset(patch_data.EnvelopeOffset[j]);
|
||||
// GF1NEW clamps the offsets to the range [5,251], so we do too.
|
||||
sp->envelope_offset[j] = convert_envelope_offset(clamp<BYTE>(patch_data.EnvelopeOffset[j], 5, 251));
|
||||
}
|
||||
|
||||
/* Then read the sample data */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue