Fix code style
[ardour.git] / libs / ardour / ardour / resampled_source.h
index bb088f36fb9a7d9f8ca911ae460aee9fbf1811c7..2bf002befe0879f9d4f818917e00aaa5ba5c4f8c 100644 (file)
@@ -31,17 +31,17 @@ namespace ARDOUR {
 class LIBARDOUR_API ResampledImportableSource : public ImportableSource
 {
   public:
-       ResampledImportableSource (boost::shared_ptr<ImportableSource>, framecnt_t rate, SrcQuality);
+       ResampledImportableSource (boost::shared_ptr<ImportableSource>, samplecnt_t rate, SrcQuality);
 
        ~ResampledImportableSource ();
 
-       framecnt_t read (Sample* buffer, framecnt_t nframes);
-       float      ratio() const { return src_data.src_ratio; }
+       samplecnt_t read (Sample* buffer, samplecnt_t nframes);
+       float      ratio() const { return _src_data.src_ratio; }
        uint32_t   channels() const { return source->channels(); }
-       framecnt_t length() const { return source->length(); }
-       framecnt_t samplerate() const { return source->samplerate(); }
-       void       seek (framepos_t);
-       framepos_t natural_position() const;
+       samplecnt_t length() const { return source->length(); }
+       samplecnt_t samplerate() const { return source->samplerate(); }
+       void       seek (samplepos_t);
+       samplepos_t natural_position() const;
 
        bool clamped_at_unity () const {
                /* resampling may generate inter-sample peaks with magnitude > 1 */
@@ -52,10 +52,11 @@ class LIBARDOUR_API ResampledImportableSource : public ImportableSource
 
    private:
        boost::shared_ptr<ImportableSource> source;
-       float* input;
-       int _src_type;
-       SRC_STATE*      src_state;
-       SRC_DATA        src_data;
+       float*          _input;
+       int             _src_type;
+       SRC_STATE*      _src_state;
+       SRC_DATA        _src_data;
+       bool            _end_of_input;
 };
 
 }