summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/midiplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/midi/midiplay.c')
-rw-r--r--apps/plugins/midi/midiplay.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/midi/midiplay.c b/apps/plugins/midi/midiplay.c
index 2c685f2e4b..d9e215158e 100644
--- a/apps/plugins/midi/midiplay.c
+++ b/apps/plugins/midi/midiplay.c
@@ -286,7 +286,7 @@ void get_more(unsigned char** start, size_t* size)
286#ifndef SYNC 286#ifndef SYNC
287 if(lastswap != swap) 287 if(lastswap != swap)
288 { 288 {
289 printf("Buffer miss!"); /* Comment out the printf to make missses less noticable. */ 289 midi_debug("Buffer miss!"); /* Comment out the midi_debug to make missses less noticable. */
290 } 290 }
291 291
292#else 292#else
@@ -307,12 +307,12 @@ static int midimain(const void * filename)
307 int a, notes_used, vol; 307 int a, notes_used, vol;
308 bool is_playing = true; /* false = paused */ 308 bool is_playing = true; /* false = paused */
309 309
310 printf("Loading file"); 310 midi_debug("Loading file");
311 mf = loadFile(filename); 311 mf = loadFile(filename);
312 312
313 if (mf == NULL) 313 if (mf == NULL)
314 { 314 {
315 printf("Error loading file."); 315 midi_debug("Error loading file.");
316 return -1; 316 return -1;
317 } 317 }
318 318
@@ -338,7 +338,7 @@ static int midimain(const void * filename)
338 * This seems to work quite well. On a laptop, anyway. 338 * This seems to work quite well. On a laptop, anyway.
339 */ 339 */
340 340
341 printf("Okay, starting sequencing"); 341 midi_debug("Okay, starting sequencing");
342 342
343 bpm = mf->div*1000000/tempo; 343 bpm = mf->div*1000000/tempo;
344 number_of_samples = SAMPLE_RATE/bpm; 344 number_of_samples = SAMPLE_RATE/bpm;
@@ -405,7 +405,7 @@ static int midimain(const void * filename)
405 /* but run through the tracks without the synth running */ 405 /* but run through the tracks without the synth running */
406 rb->pcm_play_stop(); 406 rb->pcm_play_stop();
407 seekBackward(5); 407 seekBackward(5);
408 printf("Rewind to %d:%02d\n", playing_time/60, playing_time%60); 408 midi_debug("Rewind to %d:%02d\n", playing_time/60, playing_time%60);
409 if (is_playing) 409 if (is_playing)
410 rb->pcm_play_data(&get_more, NULL, 0); 410 rb->pcm_play_data(&get_more, NULL, 0);
411 break; 411 break;
@@ -415,7 +415,7 @@ static int midimain(const void * filename)
415 { 415 {
416 rb->pcm_play_stop(); 416 rb->pcm_play_stop();
417 seekForward(5); 417 seekForward(5);
418 printf("Skip to %d:%02d\n", playing_time/60, playing_time%60); 418 midi_debug("Skip to %d:%02d\n", playing_time/60, playing_time%60);
419 if (is_playing) 419 if (is_playing)
420 rb->pcm_play_data(&get_more, NULL, 0); 420 rb->pcm_play_data(&get_more, NULL, 0);
421 break; 421 break;
@@ -425,12 +425,12 @@ static int midimain(const void * filename)
425 { 425 {
426 if (is_playing) 426 if (is_playing)
427 { 427 {
428 printf("Paused at %d:%02d\n", playing_time/60, playing_time%60); 428 midi_debug("Paused at %d:%02d\n", playing_time/60, playing_time%60);
429 is_playing = false; 429 is_playing = false;
430 rb->pcm_play_stop(); 430 rb->pcm_play_stop();
431 } else 431 } else
432 { 432 {
433 printf("Playing from %d:%02d\n", playing_time/60, playing_time%60); 433 midi_debug("Playing from %d:%02d\n", playing_time/60, playing_time%60);
434 is_playing = true; 434 is_playing = true;
435 rb->pcm_play_data(&get_more, NULL, 0); 435 rb->pcm_play_data(&get_more, NULL, 0);
436 } 436 }
@@ -465,7 +465,7 @@ enum plugin_status plugin_start(const void* parameter)
465 rb->cpu_boost(true); 465 rb->cpu_boost(true);
466#endif 466#endif
467 467
468 printf("%s", parameter); 468 midi_debug("%s", parameter);
469 /* rb->splash(HZ, true, parameter); */ 469 /* rb->splash(HZ, true, parameter); */
470 470
471#ifdef RB_PROFILE 471#ifdef RB_PROFILE