[Summary] Added support for showing sample rate label on region when session sample rate differs.

This commit is contained in:
GZharun 2014-12-25 14:32:40 +02:00
parent b2545b6a2f
commit 8aad90382e
5 changed files with 67 additions and 44 deletions

View file

@ -121,13 +121,6 @@ AudioStreamView::create_region_view (boost::shared_ptr<Region> r, bool wait_for_
region_view->init (wait_for_waves);
region_view->set_amplitude_above_axis(_amplitude_above_axis);
region_view->set_height (child_height ());
region_view->set_io_channels_config_for_label (region->get_related_audio_file_channel_count() );
region_view->set_sample_rate_for_label(region->audio_source()->sample_rate() );
/* if its the special single-sample length that we use for rec-regions, make it
insensitive to events
*/
if (region->length() == 1) {
region_view->set_sensitive (false);