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) {
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
float fsr = sources.front()->sample_rate();
- return fsr == sr;
+ return fsr != sr;
}
extern "C" {