mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
Audio decompiled and WIP custom sample support
This commit is contained in:
parent
2a1145785e
commit
b889880cc7
44 changed files with 2384 additions and 167 deletions
|
@ -938,8 +938,16 @@ u8 AudioSeq_GetInstrument(SequenceChannel* channel, u8 instId, Instrument** inst
|
|||
*instOut = NULL;
|
||||
return 0;
|
||||
}
|
||||
adsr->envelope = inst->envelope;
|
||||
adsr->releaseRate = inst->releaseRate;
|
||||
|
||||
if (inst->envelope != NULL)
|
||||
{
|
||||
adsr->envelope = inst->envelope;
|
||||
adsr->releaseRate = (inst->releaseRate);
|
||||
}
|
||||
else {
|
||||
adsr->envelope = gDefaultEnvelope;
|
||||
}
|
||||
|
||||
*instOut = inst;
|
||||
instId += 2;
|
||||
return instId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue