Ladspa2LMMS.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 EXPORT Ladspa2LMMS : public LadspaManager
  29. {
  30. public:
  31. inline l_sortable_plugin_t getInstruments()
  32. {
  33. return( m_instruments );
  34. }
  35. inline l_sortable_plugin_t getValidEffects()
  36. {
  37. return( m_validEffects );
  38. }
  39. inline l_sortable_plugin_t getInvalidEffects()
  40. {
  41. return( m_invalidEffects );
  42. }
  43. inline l_sortable_plugin_t getAnalysisTools()
  44. {
  45. return( m_analysisTools );
  46. }
  47. inline l_sortable_plugin_t getOthers()
  48. {
  49. return( m_otherPlugins );
  50. }
  51. QString getShortName( const ladspa_key_t & _key );
  52. private:
  53. Ladspa2LMMS();
  54. virtual ~Ladspa2LMMS();
  55. l_sortable_plugin_t m_instruments;
  56. l_sortable_plugin_t m_validEffects;
  57. l_sortable_plugin_t m_invalidEffects;
  58. l_sortable_plugin_t m_analysisTools;
  59. l_sortable_plugin_t m_otherPlugins;
  60. friend class LmmsCore;
  61. } ;
  62. #endif