summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/synth.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/midi/synth.c')
-rw-r--r--apps/plugins/midi/synth.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c
index f2fbe063e7..0ad7bb59f8 100644
--- a/apps/plugins/midi/synth.c
+++ b/apps/plugins/midi/synth.c
@@ -103,7 +103,7 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig)
103 103
104 if(mf->tracks[a] == NULL) 104 if(mf->tracks[a] == NULL)
105 { 105 {
106 printf("NULL TRACK !!!"); 106 midi_debug("NULL TRACK !!!");
107 rb->splash(HZ*2, "Null Track in loader."); 107 rb->splash(HZ*2, "Null Track in loader.");
108 return -1; 108 return -1;
109 } 109 }
@@ -129,10 +129,10 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig)
129 int file = rb->open(filename, O_RDONLY); 129 int file = rb->open(filename, O_RDONLY);
130 if(file < 0) 130 if(file < 0)
131 { 131 {
132 printf(""); 132 midi_debug("");
133 printf("No MIDI patchset found."); 133 midi_debug("No MIDI patchset found.");
134 printf("Please install the instruments."); 134 midi_debug("Please install the instruments.");
135 printf("See Rockbox page for more info."); 135 midi_debug("See Rockbox page for more info.");
136 136
137 rb->splash(HZ*2, "No Instruments"); 137 rb->splash(HZ*2, "No Instruments");
138 return -1; 138 return -1;
@@ -144,14 +144,14 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig)
144 /* Scan our config file and load the right patches as needed */ 144 /* Scan our config file and load the right patches as needed */
145 int c = 0; 145 int c = 0;
146 name[0] = '\0'; 146 name[0] = '\0';
147 printf("Loading instruments"); 147 midi_debug("Loading instruments");
148 for(a=0; a<128; a++) 148 for(a=0; a<128; a++)
149 { 149 {
150 while(readChar(file)!=' ' && !eof(file)); 150 while(readChar(file)!=' ' && !eof(file));
151 readTextBlock(file, name); 151 readTextBlock(file, name);
152 152
153 rb->snprintf(fn, 40, ROCKBOX_DIR "/patchset/%s.pat", name); 153 rb->snprintf(fn, 40, ROCKBOX_DIR "/patchset/%s.pat", name);
154/* printf("\nLOADING: <%s> ", fn); */ 154/* midi_debug("\nLOADING: <%s> ", fn); */
155 155
156 if(patchUsed[a]==1) 156 if(patchUsed[a]==1)
157 { 157 {
@@ -176,7 +176,7 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig)
176 /* Scan our config file and load the drum data */ 176 /* Scan our config file and load the drum data */
177 int idx=0; 177 int idx=0;
178 char number[30]; 178 char number[30];
179 printf("Loading drums"); 179 midi_debug("Loading drums");
180 while(!eof(file)) 180 while(!eof(file))
181 { 181 {
182 readTextBlock(file, number); 182 readTextBlock(file, number);
@@ -215,12 +215,12 @@ void setPoint(struct SynthObject * so, int pt)
215 215
216 if(so->wf==NULL) 216 if(so->wf==NULL)
217 { 217 {
218 printf("Crap... null waveform..."); 218 midi_debug("Crap... null waveform...");
219 exit(1); 219 exit(1);
220 } 220 }
221 if(so->wf->envRate==NULL) 221 if(so->wf->envRate==NULL)
222 { 222 {
223 printf("Waveform has no envelope set"); 223 midi_debug("Waveform has no envelope set");
224 exit(1); 224 exit(1);
225 } 225 }
226 226