diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-08 17:40:32 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-08 17:40:32 +0200 |
commit | 7434478a3567a0757791e1d231f9f60dbfdd8c10 (patch) | |
tree | 5cfa5adf6abad31d321461207ce8221e28116fe7 /gtk2_ardour/route_time_axis.cc | |
parent | cfd95340b18cc90ea9d0c53ddcd3f21407010de3 (diff) |
Update Waveform display when channel-count changes
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 5af14987ee..22f4c179de 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -2404,6 +2404,15 @@ RouteTimeAxisView::io_changed (IOChange /*change*/, void */*src*/) { reset_meter (); if (_route && !no_redraw) { + AudioStreamView* asv = dynamic_cast<AudioStreamView*>(_view); + if (asv) { + /* this needs to happen with the disk-reader's I/O changed, + * however there is no dedicated signal for this, and in almost + * call cases it follows I/O changes. + * This is similar to ARDOUR_UI::cleanup_peakfiles, and + * re-loads wave-form displays. */ + asv->reload_waves (); + } request_redraw (); } } |