summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/synth.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-04-21 05:35:17 +0000
committerJens Arnold <amiconn@rockbox.org>2007-04-21 05:35:17 +0000
commitb1f00493078c189ea41a846aee0aa3b9330f490c (patch)
tree81fc7be55ea6543889fc0cd7745354b5a8c88465 /apps/plugins/midi/synth.c
parentc69f032df4753dbd5f848c12f41adeefa74a31a6 (diff)
downloadrockbox-b1f00493078c189ea41a846aee0aa3b9330f490c.tar.gz
rockbox-b1f00493078c189ea41a846aee0aa3b9330f490c.zip
Fix the undefined char symbols appearing in many output lines. This printf does neither support nor need \n.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13229 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi/synth.c')
-rw-r--r--apps/plugins/midi/synth.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c
index 5a7a02f0a1..6ec229b4bf 100644
--- a/apps/plugins/midi/synth.c
+++ b/apps/plugins/midi/synth.c
@@ -91,7 +91,7 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig)
91 91
92 if(mf->tracks[a] == NULL) 92 if(mf->tracks[a] == NULL)
93 { 93 {
94 printf("\nNULL TRACK !!!"); 94 printf("NULL TRACK !!!");
95 rb->splash(HZ*2, "Null Track in loader."); 95 rb->splash(HZ*2, "Null Track in loader.");
96 return -1; 96 return -1;
97 } 97 }
@@ -110,10 +110,10 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig)
110 int file = rb->open(filename, O_RDONLY); 110 int file = rb->open(filename, O_RDONLY);
111 if(file < 0) 111 if(file < 0)
112 { 112 {
113 printf("\n"); 113 printf("");
114 printf("\nNo MIDI patchset found."); 114 printf("No MIDI patchset found.");
115 printf("\nPlease install the instruments."); 115 printf("Please install the instruments.");
116 printf("\nSee Rockbox page for more info."); 116 printf("See Rockbox page for more info.");
117 117
118 rb->splash(HZ*2, "No Instruments"); 118 rb->splash(HZ*2, "No Instruments");
119 return -1; 119 return -1;
@@ -125,7 +125,7 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig)
125 /* Scan our config file and load the right patches as needed */ 125 /* Scan our config file and load the right patches as needed */
126 int c = 0; 126 int c = 0;
127 name[0] = '\0'; 127 name[0] = '\0';
128 printf("\nLoading instruments"); 128 printf("Loading instruments");
129 for(a=0; a<128; a++) 129 for(a=0; a<128; a++)
130 { 130 {
131 while(readChar(file)!=' ' && !eof(file)); 131 while(readChar(file)!=' ' && !eof(file));
@@ -157,7 +157,7 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig)
157 /* Scan our config file and load the drum data */ 157 /* Scan our config file and load the drum data */
158 int idx=0; 158 int idx=0;
159 char number[30]; 159 char number[30];
160 printf("\nLoading drums"); 160 printf("Loading drums");
161 while(!eof(file)) 161 while(!eof(file))
162 { 162 {
163 readTextBlock(file, number); 163 readTextBlock(file, number);
@@ -195,12 +195,12 @@ void setPoint(struct SynthObject * so, int pt)
195 195
196 if(so->wf==NULL) 196 if(so->wf==NULL)
197 { 197 {
198 printf("\nCrap... null waveform..."); 198 printf("Crap... null waveform...");
199 exit(1); 199 exit(1);
200 } 200 }
201 if(so->wf->envRate==NULL) 201 if(so->wf->envRate==NULL)
202 { 202 {
203 printf("\nWaveform has no envelope set"); 203 printf("Waveform has no envelope set");
204 exit(1); 204 exit(1);
205 } 205 }
206 206