#include "ardour/ardour.h"
#include "ardour/automatable.h"
-#include "ardour/gain.h"
+#include "ardour/automation_list.h"
#include "ardour/logcurve.h"
#include "ardour/region.h"
extern PBD::PropertyDescriptor<bool> fade_in_active;
extern PBD::PropertyDescriptor<bool> fade_out_active;
extern PBD::PropertyDescriptor<float> scale_amplitude;
- extern PBD::PropertyDescriptor<float> scale_amplitude;
/* the envelope and fades are not scalar items and so
currently (2010/02) are not stored using Property.
ReadOpsNone = 0x0,
ReadOpsOwnAutomation = 0x1,
ReadOpsOwnScaling = 0x2,
- ReadOpsCount = 0x4,
- ReadOpsFades = 0x8
+ ReadOpsFades = 0x4
};
virtual framecnt_t read (Sample*, framepos_t pos, framecnt_t cnt, int channel) const;
virtual framecnt_t readable_length() const { return length(); }
virtual framecnt_t read_at (Sample *buf, Sample *mixdown_buf, float *gain_buf,
- framepos_t position,
- framecnt_t cnt,
- uint32_t chan_n = 0,
- framecnt_t read_frames = 0,
- framecnt_t skip_frames = 0) const;
-
+ framepos_t position,
+ framecnt_t cnt,
+ uint32_t chan_n = 0) const;
+
virtual framecnt_t master_read_at (Sample *buf, Sample *mixdown_buf, float *gain_buf,
framepos_t position, framecnt_t cnt, uint32_t chan_n=0) const;
-
+
virtual framecnt_t read_raw_internal (Sample*, framepos_t, framecnt_t, int channel) const;
XMLNode& state ();
return _automatable.control(id);
}
- /* export */
-
- int exportme (ARDOUR::Session&, ARDOUR::ExportSpecification&);
-
/* xfade/fade interactions */
void suspend_fade_in ();
AudioRegion (boost::shared_ptr<AudioSource>);
AudioRegion (const SourceList &);
- AudioRegion (boost::shared_ptr<const AudioRegion>, frameoffset_t offset = 0, bool offset_relative = true);
+ AudioRegion (boost::shared_ptr<const AudioRegion>);
+ AudioRegion (boost::shared_ptr<const AudioRegion>, frameoffset_t offset);
AudioRegion (boost::shared_ptr<const AudioRegion>, const SourceList&);
AudioRegion (SourceList &);
PBD::Property<bool> _default_fade_out;
PBD::Property<bool> _fade_in_active;
PBD::Property<bool> _fade_out_active;
+ /** linear gain to apply to the whole region */
PBD::Property<gain_t> _scale_amplitude;
-
+
void register_properties ();
- void post_set ();
+ void post_set (const PBD::PropertyChange&);
void init ();
void set_default_fades ();
Sample *buf, Sample *mixdown_buffer, float *gain_buffer,
framepos_t position, framecnt_t cnt,
uint32_t chan_n = 0,
- framecnt_t read_frames = 0,
- framecnt_t skip_frames = 0,
ReadOps readops = ReadOps (~0)) const;
void recompute_at_start ();