triggerbox: fix API/virtual issue with ::start_offset() method
This commit is contained in:
parent
753d1c9754
commit
ce71ee010e
@ -143,7 +143,7 @@ class LIBARDOUR_API Trigger : public PBD::Stateful {
|
||||
|
||||
virtual bool probably_oneshot () const = 0;
|
||||
|
||||
timepos_t start_offset () const; /* offset from start of data */
|
||||
virtual timepos_t start_offset () const = 0; /* offset from start of data */
|
||||
virtual timepos_t current_length() const = 0; /* offset from start() */
|
||||
virtual timepos_t natural_length() const = 0; /* offset from start() */
|
||||
|
||||
@ -306,7 +306,7 @@ class LIBARDOUR_API AudioTrigger : public Trigger {
|
||||
void set_legato_offset (timepos_t const &);
|
||||
timepos_t current_pos() const;
|
||||
void set_length (timecnt_t const &);
|
||||
timepos_t start_offset () const { return timepos_t (_start_offset); } /* offset from start of data */
|
||||
timepos_t start_offset () const; /* offset from start of data */
|
||||
timepos_t current_length() const; /* offset from start of data */
|
||||
timepos_t natural_length() const; /* offset from start of data */
|
||||
void reload (BufferSet&, void*);
|
||||
|
@ -732,6 +732,12 @@ AudioTrigger::set_legato_offset (timepos_t const & offset)
|
||||
_legato_offset = offset.samples();
|
||||
}
|
||||
|
||||
timepos_t
|
||||
AudioTrigger::start_offset () const
|
||||
{
|
||||
return timepos_t (_start_offset);
|
||||
}
|
||||
|
||||
timepos_t
|
||||
AudioTrigger::current_pos() const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user