Browse Source

More misc changes

tags/1.9.4
falkTX 11 years ago
parent
commit
45bab425d1
2 changed files with 11 additions and 11 deletions
  1. +9
    -9
      source/backend/CarlaPlugin.hpp
  2. +2
    -2
      source/utils/CarlaJuceUtils.hpp

+ 9
- 9
source/backend/CarlaPlugin.hpp View File

@@ -100,7 +100,7 @@ struct CarlaPluginProtectedData;
*/ */
class CarlaPlugin class CarlaPlugin
{ {
public:
protected:
/*! /*!
* This is the constructor of the base plugin class. * This is the constructor of the base plugin class.
* *
@@ -109,6 +109,7 @@ public:
*/ */
CarlaPlugin(CarlaEngine* const engine, const unsigned int id); CarlaPlugin(CarlaEngine* const engine, const unsigned int id);


public:
/*! /*!
* This is the destructor of the base plugin class. * This is the destructor of the base plugin class.
*/ */
@@ -312,9 +313,8 @@ public:
/*! /*!
* Get the complete plugin chunk data into \a dataPtr. * Get the complete plugin chunk data into \a dataPtr.
* *
* \return The size of the chunk or 0 if invalid.
*
* \note Make sure to verify the plugin supports chunks before calling this function! * \note Make sure to verify the plugin supports chunks before calling this function!
* \return The size of the chunk or 0 if invalid.
* *
* \see setChunkData() * \see setChunkData()
*/ */
@@ -412,6 +412,11 @@ public:
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// Set data (state) // Set data (state)


/*!
* Tell the plugin to prepare for save.
*/
virtual void prepareForSave();

/*! /*!
* Get the plugin's save state.\n * Get the plugin's save state.\n
* The plugin will automatically call prepareForSave() as needed. * The plugin will automatically call prepareForSave() as needed.
@@ -660,11 +665,6 @@ public:
*/ */
virtual void reloadPrograms(const bool init); virtual void reloadPrograms(const bool init);


/*!
* Tell the plugin to prepare for save.
*/
virtual void prepareForSave();

// ------------------------------------------------------------------- // -------------------------------------------------------------------
// Plugin processing // Plugin processing


@@ -863,7 +863,7 @@ protected:


// Lock the plugin's own run/process call // Lock the plugin's own run/process call
// Plugin will still work as normal, but output only silence // Plugin will still work as normal, but output only silence
// On destructor needsReset flag is set, as the plugin might have missed some events
// On destructor needsReset flag might be set if the plugin might have missed some events
class ScopedProcessLocker class ScopedProcessLocker
{ {
public: public:


+ 2
- 2
source/utils/CarlaJuceUtils.hpp View File

@@ -24,14 +24,14 @@
#include <algorithm> #include <algorithm>


#define CARLA_DECLARE_NON_COPYABLE(className) \ #define CARLA_DECLARE_NON_COPYABLE(className) \
className (const className&);\
private: \
className (const className&); \
className& operator= (const className&); className& operator= (const className&);


/** This is a shorthand way of writing both a CARLA_DECLARE_NON_COPYABLE and /** This is a shorthand way of writing both a CARLA_DECLARE_NON_COPYABLE and
CARLA_LEAK_DETECTOR macro for a class. CARLA_LEAK_DETECTOR macro for a class.
*/ */
#define CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className) \ #define CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className) \
private: \
CARLA_DECLARE_NON_COPYABLE(className) \ CARLA_DECLARE_NON_COPYABLE(className) \
CARLA_LEAK_DETECTOR(className) CARLA_LEAK_DETECTOR(className)




Loading…
Cancel
Save