mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
add post-export audition seeking
This commit is contained in:
parent
fbbde01f25
commit
fc5c247aa1
2 changed files with 21 additions and 0 deletions
|
|
@ -554,6 +554,7 @@ ExportReport::ExportReport (Session* session, StatusPtr s)
|
|||
ytme->flush ();
|
||||
CimgArea *tm = manage (new CimgArea (ytme));
|
||||
tm->set_audition_axis (m_l, width);
|
||||
tm->seek_playhead.connect (sigc::bind<0> (sigc::mem_fun (*this, &ExportReport::audition_seek), page));
|
||||
timeline.push_back (tm);
|
||||
vb->pack_start (*tm);
|
||||
} else {
|
||||
|
|
@ -764,3 +765,11 @@ ExportReport::audition_progress (framecnt_t pos, framecnt_t len)
|
|||
timeline[_audition_num]->set_playhead ((float)pos / len);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ExportReport::audition_seek (int page, float pos)
|
||||
{
|
||||
if (_audition_num == page && _session) {
|
||||
_session->the_auditioner()->seek_to_percent (100.f * pos);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue