summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/guspat.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/midi/guspat.c')
-rw-r--r--apps/plugins/midi/guspat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/midi/guspat.c b/apps/plugins/midi/guspat.c
index 5f6ba35110..ea0ca92518 100644
--- a/apps/plugins/midi/guspat.c
+++ b/apps/plugins/midi/guspat.c
@@ -122,7 +122,7 @@ struct GWaveform * loadWaveform(int file)
122 /* Byte-swap if necessary. Gus files are little endian */ 122 /* Byte-swap if necessary. Gus files are little endian */
123 for(a=0; a<wav->numSamples; a++) 123 for(a=0; a<wav->numSamples; a++)
124 { 124 {
125 ((unsigned short *) wav->data)[a] = letoh16(((unsigned short *) wav->data)[a]); 125 ((uint16_t*) wav->data)[a] = letoh16(((uint16_t *) wav->data)[a]);
126 } 126 }
127#endif 127#endif
128 128
@@ -130,7 +130,7 @@ struct GWaveform * loadWaveform(int file)
130 if(wav->mode & 2) 130 if(wav->mode & 2)
131 { 131 {
132 for(a=0; a<wav->numSamples; a++) 132 for(a=0; a<wav->numSamples; a++)
133 ((short *) wav->data)[a] = ((unsigned short *) wav->data)[a] - 32768; 133 ((int16_t *) wav->data)[a] = ((uint16_t *) wav->data)[a] - 32768;
134 134
135 } 135 }
136 136