/* * Carla Plugin Host * Copyright (C) 2011-2019 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 doc/GPL.txt file. */ #include "CarlaHost.h" #include "CarlaUtils.h" #include "CarlaString.hpp" #ifdef HAVE_FLUIDSYNTH # include #endif #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wconversion" # pragma GCC diagnostic ignored "-Weffc++" # pragma GCC diagnostic ignored "-Wsign-conversion" # pragma GCC diagnostic ignored "-Wundef" # pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #endif #ifdef USING_JUCE # include "AppConfig.h" # include "juce_core/juce_core.h" #else # include "rtaudio/RtAudio.h" # include "rtmidi/RtMidi.h" #endif #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) # pragma GCC diagnostic pop #endif #include "water/files/File.h" // ------------------------------------------------------------------------------------------------------------------- const char* carla_get_complete_license_text() { carla_debug("carla_get_complete_license_text()"); static CarlaString retText; if (retText.isEmpty()) { retText = "

This current Carla build is using the following features and 3rd-party code:

" ""; } return retText; } const char* carla_get_juce_version() { carla_debug("carla_get_juce_version()"); static CarlaString retVersion; #ifdef USING_JUCE if (retVersion.isEmpty()) { if (const char* const version = juce::SystemStats::getJUCEVersion().toRawUTF8()) retVersion = version+6; else retVersion = "Unknown"; } #endif return retVersion; } const char* const* carla_get_supported_file_extensions() { carla_debug("carla_get_supported_file_extensions()"); // NOTE: please keep in sync with CarlaEngine::loadFile!! static const char* const extensions[] = { // Base types "carxp", "carxs", // plugin files and resources #ifdef HAVE_FLUIDSYNTH "sf2", "sf3", #endif #ifdef HAVE_ZYN_DEPS "xmz", "xiz", #endif #ifdef CARLA_OS_MAC "vst", #else "dll", "so", #endif #if defined(USING_JUCE) && (defined(CARLA_OS_MAC) || defined(CARLA_OS_WIN)) "vst3", #endif // Audio files #ifdef HAVE_SNDFILE "aif", "aifc", "aiff", "au", "bwf", "flac", "htk", "iff", "mat4", "mat5", "oga", "ogg", "paf", "pvf", "pvf5", "sd2", "sf", "snd", "svx", "vcc", "w64", "wav", "xi", #endif #ifdef HAVE_FFMPEG "3g2", "3gp", "aac", "ac3", "amr", "ape", "mp2", "mp3", "mpc", "wma", # ifndef HAVE_SNDFILE // FFmpeg without sndfile "flac", "oga", "ogg", "w64", "wav", # endif #endif // MIDI files "mid", "midi", // SFZ "sfz", // terminator nullptr }; return extensions; } const char* const* carla_get_supported_features() { carla_debug("carla_get_supported_features()"); static const char* const features[] = { #ifdef HAVE_FLUIDSYNTH "sf2", #endif #ifdef HAVE_HYLIA "link", #endif #ifdef HAVE_LIBLO "osc", #endif #if defined(HAVE_LIBMAGIC) || defined(CARLA_OS_WIN) "bridges", #endif #ifdef HAVE_PYQT "gui", #endif #ifdef USING_JUCE "juce", # if defined(CARLA_OS_MAC) || defined(CARLA_OS_WIN) "vst3", # endif # if defined(CARLA_OS_MAC) "au", # endif #endif nullptr }; return features; } // ------------------------------------------------------------------------------------------------------------------- #include "../CarlaHostCommon.cpp" // -------------------------------------------------------------------------------------------------------------------