Fix for all regions having a "speed mismatch" (showing a * in the regionview name)

Fix for region stacking problem (leftmost region view grayed out and un selectable)


git-svn-id: svn://localhost/ardour2/trunk@745 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard
2006-08-02 02:03:50 +00:00
parent ee1477f9b6
commit c3a00bf1e9
3 changed files with 9 additions and 4 deletions

View File

@@ -992,12 +992,14 @@ AudioRegionView::set_waveform_shape (WaveformShape shape)
GhostRegion*
AudioRegionView::add_ghost (AutomationTimeAxisView& atv)
{
RouteTimeAxisView& myatv (*(dynamic_cast<RouteTimeAxisView*>(&trackview))); // ick
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*>(&trackview);
assert(rtv);
double unit_position = _region.position () / samples_per_unit;
GhostRegion* ghost = new GhostRegion (atv, unit_position);
uint32_t nchans;
nchans = myatv.get_diskstream()->n_channels();
nchans = rtv->get_diskstream()->n_channels();
for (uint32_t n = 0; n < nchans; ++n) {

View File

@@ -302,7 +302,10 @@ StreamView::region_layered (RegionView* rv)
get events - the parent group does instead ...
*/
rv->get_canvas_group()->raise (rv->region().layer() + 1);
/* this used to be + 1, but regions to the left ended up below
..something.. and couldn't receive events. why? good question.
*/
rv->get_canvas_group()->raise (rv->region().layer() + 2);
}
void

View File

@@ -1379,7 +1379,7 @@ AudioRegion::speed_mismatch (float sr) const
float fsr = sources.front()->sample_rate();
return fsr == sr;
return fsr != sr;
}
extern "C" {