diff options
author | Robin Gareus <robin@gareus.org> | 2014-01-17 00:20:58 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-01-17 00:20:58 +0100 |
commit | b4462b3d22f57f3fe7f4e933b2df0e2c89148e78 (patch) | |
tree | 114d4c04b6206b199c1c627900a2cbfe1d31007d /libs/ardour/butler.cc | |
parent | 10933e200369ecceb2c8b3a52be41b930955d269 (diff) |
add seeking to sfdb auditioner
Diffstat (limited to 'libs/ardour/butler.cc')
-rw-r--r-- | libs/ardour/butler.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/butler.cc b/libs/ardour/butler.cc index 89b2cc1303..e37734f261 100644 --- a/libs/ardour/butler.cc +++ b/libs/ardour/butler.cc @@ -212,6 +212,14 @@ restart: _session.butler_transport_work (); } + frameoffset_t audition_seek; + if (should_run && _session.is_auditioning() + && (audition_seek = _session.the_auditioner()->seek_frame()) > 0) { + boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (_session.the_auditioner()); + tr->seek(audition_seek); + _session.the_auditioner()->seek_response(audition_seek); + } + boost::shared_ptr<RouteList> rl = _session.get_routes(); RouteList rl_with_auditioner = *rl; |