13
0

Explicitly set announce=false when creating regions (1/2)

This is in preparation for to improve consistency of
RegionFactory::create() default parameters (change
default to true).
This commit is contained in:
Robin Gareus 2021-04-30 18:26:51 +02:00
parent 6a82aa392c
commit f3d7c551e9
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -311,7 +311,7 @@ Auditioner::audition_region (boost::shared_ptr<Region> region)
_import_position = 0;
/* copy it */
the_region = boost::dynamic_pointer_cast<AudioRegion> (RegionFactory::create (region));
the_region = boost::dynamic_pointer_cast<AudioRegion> (RegionFactory::create (region, false));
the_region->set_position (0);
_disk_reader->midi_playlist()->drop_regions ();
@ -337,7 +337,7 @@ Auditioner::audition_region (boost::shared_ptr<Region> region)
_import_position = region->position();
/* copy it */
midi_region = (boost::dynamic_pointer_cast<MidiRegion> (RegionFactory::create (region)));
midi_region = (boost::dynamic_pointer_cast<MidiRegion> (RegionFactory::create (region, false)));
midi_region->set_position (_import_position);
_disk_reader->audio_playlist()->drop_regions();