mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
[Summary] Added support for showing sample rate label on region when session sample rate differs.
This commit is contained in:
parent
b2545b6a2f
commit
8aad90382e
5 changed files with 67 additions and 44 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue