diff options
Diffstat (limited to 'apps/plugins/midi/guspat.c')
-rw-r--r-- | apps/plugins/midi/guspat.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/plugins/midi/guspat.c b/apps/plugins/midi/guspat.c index 6508591f74..f674b64caa 100644 --- a/apps/plugins/midi/guspat.c +++ b/apps/plugins/midi/guspat.c | |||
@@ -66,6 +66,18 @@ struct GWaveform * loadWaveform(int file) | |||
66 | wav->res=readData(file, 36); | 66 | wav->res=readData(file, 36); |
67 | wav->data=readData(file, wav->wavSize); | 67 | wav->data=readData(file, wav->wavSize); |
68 | 68 | ||
69 | int a=0; | ||
70 | |||
71 | //If we have a 16 bit waveform | ||
72 | if(wav->mode & 1 && (wav->mode & 2)) | ||
73 | { | ||
74 | for(a=0; a<wav->wavSize; a+=2) //Convert it to | ||
75 | { | ||
76 | //wav->data[a]=wav->data[a]; //+((wav->mode & 2) << 6); | ||
77 | wav->data[a|1]=wav->data[(a)|1]+(1 << 7); | ||
78 | } | ||
79 | } | ||
80 | |||
69 | return wav; | 81 | return wav; |
70 | } | 82 | } |
71 | 83 | ||