From ef307783786c13c2e2dcdc83e7cda172330d05e4 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 19 Feb 2012 01:19:08 +0000 Subject: [PATCH] Misc --- src/carla-discovery/carla-discovery.cpp | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/carla-discovery/carla-discovery.cpp b/src/carla-discovery/carla-discovery.cpp index 474bd3e..ea346d3 100644 --- a/src/carla-discovery/carla-discovery.cpp +++ b/src/carla-discovery/carla-discovery.cpp @@ -1,4 +1,19 @@ -/* Carla Plugin discovery code */ +/* + * Carla Plugin discovery code + * Copyright (C) 2012 Filipe Coelho + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * For a full copy of the GNU General Public License see the COPYING file + */ #ifndef nullptr const class { @@ -63,7 +78,6 @@ private: #define kPlugCategGenerator 11 #endif -// we don't need to support SoundFonts in 32bit or Wine builds #ifdef WANT_FLUIDSYNTH #include #endif @@ -165,7 +179,9 @@ bool VstPluginCanDo(AEffect* effect, const char* feature) intptr_t VstHostCallback(AEffect* effect, int32_t opcode, int32_t index, intptr_t value, void* ptr, float opt) { +#if DEBUG std::cout << "VstHostCallback(" << effect << ", " << opcode << ", " << index << ", " << value << ", " << ptr << ", " << opt << ")" << std::endl; +#endif switch (opcode) { @@ -206,7 +222,9 @@ intptr_t VstHostCallback(AEffect* effect, int32_t opcode, int32_t index, intptr_ return 0x05; // 0.5 case audioMasterCanDo: +#if DEBUG std::cout << "VstHostCallback:audioMasterCanDo - " << (char*)ptr << std::endl; +#endif if (strcmp((char*)ptr, "sendVstEvents") == 0) return 1; @@ -766,7 +784,7 @@ void do_sf2_check(const char* filename) f_sfont = fluid_synth_get_sfont_by_id(f_synth, f_id); - // initial check to know how much midi-programs we get + // initial check to know how many midi-programs we get f_sfont->iteration_start(f_sfont); while (f_sfont->iteration_next(f_sfont, &f_preset)) programs += 1;