summaryrefslogtreecommitdiff
path: root/arm7/lib/src/SND_seq.c
diff options
context:
space:
mode:
authorMichael Panzlaff <michael.panzlaff@fau.de>2021-08-25 17:50:38 +0200
committerMichael Panzlaff <michael.panzlaff@fau.de>2021-08-25 18:03:51 +0200
commita6e669f1da619f88d58839807e0c3a908bf6ced5 (patch)
treeca3ab0af27eb05bd193c890c6a16f721f508b107 /arm7/lib/src/SND_seq.c
parent0d7ce0e3ba9bc78a5d785e6857c4b8876ad2cf66 (diff)
PR: implement review corrections 2
Diffstat (limited to 'arm7/lib/src/SND_seq.c')
-rw-r--r--arm7/lib/src/SND_seq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arm7/lib/src/SND_seq.c b/arm7/lib/src/SND_seq.c
index e16ca9be..d4f6b7b1 100644
--- a/arm7/lib/src/SND_seq.c
+++ b/arm7/lib/src/SND_seq.c
@@ -711,7 +711,7 @@ static void TrackUpdateChannel(struct SNDTrack *track, struct SNDPlayer *player,
for (struct SNDExChannel *chn = track->channelLLHead; chn != NULL; chn = chn->channelLLNext)
{
- chn->userDecay2 = (short)fader;
+ chn->userDecay2 = (s16)fader;
if (chn->envStatus == 3)
continue;
@@ -820,7 +820,7 @@ static void TrackPlayNote(
chn->sweepPitch = track->sweepPitch;
if (track->flags.portamento)
- chn->sweepPitch += (short)((track->portamentoKey - midiKey) << 6);
+ chn->sweepPitch += (s16)((track->portamentoKey - midiKey) << 6);
if (track->portamentoTime == 0)
{