diff --git a/dsp/fabla.cxx b/dsp/fabla.cxx index 986a67c..1c5bd1e 100644 --- a/dsp/fabla.cxx +++ b/dsp/fabla.cxx @@ -242,7 +242,7 @@ instantiate(const LV2_Descriptor* descriptor, if ( self->log ) lv2_log_warning(&self->logger, "Fabla: Warning, your host doesn't support the Worker extension. Loading samples may cause Xruns!"); else - printf("Fabla: Warning, your host doesn't support the Worker extension. Loading samples may cause Xruns!"); + fprintf(stderr, "Fabla: Warning, your host doesn't support the Worker extension. Loading samples may cause Xruns!"); } // initialize master output smoothing state @@ -363,7 +363,7 @@ connect_port(LV2_Handle instance, break; default: - printf("Error: Attempted connect of non-existing port with ID %u \n", port); break; + fprintf(stderr, "Error: Attempted connect of non-existing port with ID %u \n", port); break; } } @@ -816,7 +816,7 @@ work(LV2_Handle instance, uint32_t size, const void* data) { - printf("Fabla: Work() now\n" ); + fprintf(stderr, "Fabla: Work() now\n" ); FABLA_DSP* self = (FABLA_DSP*)instance; LV2_Atom* atom = (LV2_Atom*)data; @@ -829,18 +829,18 @@ work(LV2_Handle instance, } else { - printf("Fabla Work() LoadSample type message\n" ); + fprintf(stderr, "Fabla Work() LoadSample type message\n" ); /* Handle set message (load sample). */ LV2_Atom_Object* obj = (LV2_Atom_Object*)data; - printf("Fabla Work() LV2_Atom_Object atom type %i, body.otype %i \n", obj->atom.type, obj->body.otype ); + fprintf(stderr, "Fabla Work() LV2_Atom_Object atom type %i, body.otype %i \n", obj->atom.type, obj->body.otype ); /* Get file path from message */ const LV2_Atom_Int* sampleNum = 0;// FIXME read_set_file_sample_number(&self->uris, obj); if ( !sampleNum ) { - printf("Fabla Work() LoadSample Sample number not found in Atom\n" ); + fprintf(stderr, "Fabla Work() LoadSample Sample number not found in Atom\n" ); } else { @@ -849,7 +849,7 @@ work(LV2_Handle instance, const LV2_Atom* file_path = 0; //fixme: take from Atom message if (!file_path) { - printf( "Fabla Work() LoadSample FILE PATH NOT VALID\n" ); + fprintf(stderr, "Fabla Work() LoadSample FILE PATH NOT VALID\n" ); return LV2_WORKER_ERR_UNKNOWN; } @@ -961,7 +961,7 @@ save(LV2_Handle instance, if ( !map_path ) { - printf("Error: map path not available! SAVE DID NOT COMPLETE!\n" ); + fprintf(stderr, "Error: map path not available! SAVE DID NOT COMPLETE!\n" ); return LV2_STATE_ERR_NO_FEATURE; } @@ -977,7 +977,7 @@ save(LV2_Handle instance, if ( apath ) { - printf("Storing on pad %i, apath %s\n", i, apath ); + fprintf(stderr, "Storing on pad %i, apath %s\n", i, apath ); store(handle, self->uris->padFilename[i], apath, @@ -989,7 +989,7 @@ save(LV2_Handle instance, } else { - printf("apath = null on pad %i\n", i ); + fprintf(stderr, "apath = null on pad %i\n", i ); } } } @@ -1035,13 +1035,13 @@ restore(LV2_Handle instance, } else { - printf("Error: load_sample() return zero on pad %i\n", i); + fprintf(stderr, "Error: load_sample() return zero on pad %i\n", i); } } // path is valid else { - printf( "Error: path of sample not valid from Restore::retrieve()\n"); + fprintf(stderr, "Error: path of sample not valid from Restore::retrieve()\n"); } } }