Ladspa2LMMS.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Ladspa2LMMS.h - class that identifies and instantiates LADSPA effects
  3. * for use with LMMS
  4. *
  5. * Copyright (c) 2005-2008 Danny McRae <khjklujn@netscape.net>
  6. *
  7. * This file is part of LMMS - https://lmms.io
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 2 of the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public
  20. * License along with this program (see COPYING); if not, write to the
  21. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  22. * Boston, MA 02110-1301 USA.
  23. *
  24. */
  25. #ifndef LADSPA_2_LMMS_H
  26. #define LADSPA_2_LMMS_H
  27. #include "LadspaManager.h"
  28. //! Class responsible for sorting found plugins (by LadspaManager)
  29. //! into categories
  30. class LMMS_EXPORT Ladspa2LMMS : public LadspaManager
  31. {
  32. public:
  33. inline l_sortable_plugin_t getInstruments()
  34. {
  35. return( m_instruments );
  36. }
  37. inline l_sortable_plugin_t getValidEffects()
  38. {
  39. return( m_validEffects );
  40. }
  41. inline l_sortable_plugin_t getInvalidEffects()
  42. {
  43. return( m_invalidEffects );
  44. }
  45. inline l_sortable_plugin_t getAnalysisTools()
  46. {
  47. return( m_analysisTools );
  48. }
  49. inline l_sortable_plugin_t getOthers()
  50. {
  51. return( m_otherPlugins );
  52. }
  53. QString getShortName( const ladspa_key_t & _key );
  54. private:
  55. Ladspa2LMMS();
  56. virtual ~Ladspa2LMMS();
  57. l_sortable_plugin_t m_instruments;
  58. l_sortable_plugin_t m_validEffects;
  59. l_sortable_plugin_t m_invalidEffects;
  60. l_sortable_plugin_t m_analysisTools;
  61. l_sortable_plugin_t m_otherPlugins;
  62. friend class LmmsCore;
  63. } ;
  64. #endif