commit df21ca4fd7f92c36117f90caf8585305dc503e9a
Author: ceski <56656010+ceski-1@users.noreply.github.com>
AuthorDate: Mon May 15 10:43:50 2023 -0700
Commit: ceski <56656010+ceski-1@users.noreply.github.com>
CommitDate: Mon May 15 10:43:50 2023 -0700
Add missing consts
---
src/i_winmusic.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/i_winmusic.c b/src/i_winmusic.c
index 26a03035..1bec1c76 100644
--- a/src/i_winmusic.c
+++ b/src/i_winmusic.c
@@ -266,7 +266,7 @@ static void SendDelayMsg(int time_ms)
SendNOPMsg(time_ticks);
}
-static void UpdateTempo(int time, midi_event_t *event)
+static void UpdateTempo(int time, const midi_event_t *event)
{
native_event_t native_event;
@@ -561,7 +561,7 @@ static void SendSysExMsg(int time, const byte *data, int length)
}
static void SendProgramMsg(int time, int channel, int program,
- midi_fallback_t *fallback)
+ const midi_fallback_t *fallback)
{
switch ((int)fallback->type)
{
@@ -595,7 +595,7 @@ static void SetLoopPoint(void)
song.saved_elapsed_time = song.elapsed_time;
}
-static void CheckFFLoop(midi_event_t *event)
+static void CheckFFLoop(const midi_event_t *event)
{
if (event->data.meta.length == sizeof(ff_loopStart) &&
!memcmp(event->data.meta.data, ff_loopStart, sizeof(ff_loopStart)))
@@ -610,7 +610,7 @@ static void CheckFFLoop(midi_event_t *event)
}
}
-static boolean AddToBuffer(unsigned int delta_time, midi_event_t *event,
+static boolean AddToBuffer(unsigned int delta_time, const midi_event_t *event,
win_midi_track_t *track)
{
unsigned int i;