Give Processor::run a new parameter to say whether or not the run method must leave
[ardour.git] / libs / ardour / ardour / export_utilities.h
index 1da79a8d398d1f656819865ebb53feeef8990cdc..5733ebb4036c64b46372dd4e9a12d20de3b092c7 100644 (file)
@@ -44,22 +44,22 @@ class SampleRateConverter : public GraphSinkVertex<float, float>
 
   protected:
        nframes_t process (float * data, nframes_t frames);
-       
+
   private:
        bool           active;
        uint32_t       channels;
-       
+
        nframes_t      leftover_frames;
        nframes_t      max_leftover_frames;
        nframes_t      frames_in;
        nframes_t      frames_out;
-       
+
        float *        data_in;
        float *        leftover_data;
-       
+
        float *        data_out;
        nframes_t      data_out_size;
-       
+
        SRC_DATA       src_data;
        SRC_STATE*     src_state;
 };
@@ -72,21 +72,21 @@ class SampleFormatConverter : public GraphSinkVertex<float, TOut>
   public:
        SampleFormatConverter (uint32_t channels, ExportFormatBase::DitherType type = ExportFormatBase::D_None, int data_width_ = 0);
        ~SampleFormatConverter ();
-       
+
        void set_clip_floats (bool yn) { clip_floats = yn; }
-       
+
   protected:
        nframes_t process (float * data, nframes_t frames);
-       
+
   private:
        uint32_t     channels;
        int          data_width;
        GDither      dither;
        nframes_t    data_out_size;
        TOut *       data_out;
-       
+
        bool         clip_floats;
-       
+
 };
 
 /* Peak reader */
@@ -96,16 +96,16 @@ class PeakReader : public GraphSinkVertex<float, float>
   public:
        PeakReader (uint32_t channels) : channels (channels), peak (0) {}
        ~PeakReader () {}
-       
+
        float get_peak () { return peak; }
-       
+
   protected:
        nframes_t process (float * data, nframes_t frames)
        {
                peak = compute_peak (data, channels * frames, peak);
                return piped_to->write (data, frames);
        }
-       
+
   private:
        uint32_t    channels;
        float       peak;
@@ -118,15 +118,15 @@ class Normalizer : public GraphSinkVertex<float, float>
   public:
        Normalizer (uint32_t channels, float target_dB);
        ~Normalizer ();
-       
+
        void set_peak (float peak);
-       
+
   protected:
        nframes_t process (float * data, nframes_t frames);
-       
+
   private:
        uint32_t    channels;
-       
+
        bool        enabled;
        gain_t      target;
        gain_t      gain;
@@ -137,7 +137,7 @@ class Normalizer : public GraphSinkVertex<float, float>
 class NullSink : public GraphSink<float>
 {
   public:
-       nframes_t write (float * data, nframes_t frames) { return frames; }
+       nframes_t write (float * /*data*/, nframes_t frames) { return frames; }
 };