From 431b2f15c666748d9c128dbf13b4423864a6ebcd Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 22 Sep 2017 01:52:48 +0200 Subject: [PATCH] NO-OP: whitespace --- libs/ardour/disk_writer.cc | 16 ++++++------ libs/ardour/track.cc | 51 +++++++++++++++++++------------------- 2 files changed, 34 insertions(+), 33 deletions(-) diff --git a/libs/ardour/disk_writer.cc b/libs/ardour/disk_writer.cc index b741a864dc..fa05516665 100644 --- a/libs/ardour/disk_writer.cc +++ b/libs/ardour/disk_writer.cc @@ -48,14 +48,14 @@ DiskWriter::DiskWriter (Session& s, string const & str, DiskIOProcessor::Flag f) , _record_enabled (0) , _record_safe (0) , capture_start_sample (0) - , capture_captured (0) - , was_recording (false) - , adjust_capture_position (0) - , _capture_offset (0) - , first_recordable_sample (max_samplepos) - , last_recordable_sample (max_samplepos) - , last_possibly_recording (0) - , _alignment_style (ExistingMaterial) + , capture_captured (0) + , was_recording (false) + , adjust_capture_position (0) + , _capture_offset (0) + , first_recordable_sample (max_samplepos) + , last_recordable_sample (max_samplepos) + , last_possibly_recording (0) + , _alignment_style (ExistingMaterial) , _num_captured_loops (0) , _accumulated_capture_offset (0) , _gui_feed_buffer(AudioEngine::instance()->raw_buffer_size (DataType::MIDI)) diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index 2ad41dc34d..a86584ec65 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -54,12 +54,12 @@ using namespace PBD; Track::Track (Session& sess, string name, PresentationInfo::Flag flag, TrackMode mode, DataType default_type) : Route (sess, name, flag, default_type) - , _saved_meter_point (_meter_point) - , _mode (mode) + , _saved_meter_point (_meter_point) + , _mode (mode) , _alignment_choice (Automatic) { _freeze_record.state = NoFreeze; - _declickable = true; + _declickable = true; } @@ -81,30 +81,31 @@ Track::~Track () int Track::init () { - if (Route::init ()) { - return -1; - } + if (Route::init ()) { + return -1; + } - DiskIOProcessor::Flag dflags = DiskIOProcessor::Recordable; + DiskIOProcessor::Flag dflags = DiskIOProcessor::Recordable; - if (_mode == Destructive && !Profile->get_trx()) { - dflags = DiskIOProcessor::Flag (dflags | DiskIOProcessor::Destructive); - } else if (_mode == NonLayered){ - dflags = DiskIOProcessor::Flag(dflags | DiskIOProcessor::NonLayered); - } + if (_mode == Destructive && !Profile->get_trx()) { + dflags = DiskIOProcessor::Flag (dflags | DiskIOProcessor::Destructive); + } else if (_mode == NonLayered){ + dflags = DiskIOProcessor::Flag(dflags | DiskIOProcessor::NonLayered); + } - _disk_reader.reset (new DiskReader (_session, name(), dflags)); - _disk_reader->set_block_size (_session.get_block_size ()); - _disk_reader->set_route (boost::dynamic_pointer_cast (shared_from_this())); + _disk_reader.reset (new DiskReader (_session, name(), dflags)); + _disk_reader->set_block_size (_session.get_block_size ()); + _disk_reader->set_route (boost::dynamic_pointer_cast (shared_from_this())); + + _disk_writer.reset (new DiskWriter (_session, name(), dflags)); + _disk_writer->set_block_size (_session.get_block_size ()); + _disk_writer->set_route (boost::dynamic_pointer_cast (shared_from_this())); set_align_choice_from_io (); - _disk_writer.reset (new DiskWriter (_session, name(), dflags)); - _disk_writer->set_block_size (_session.get_block_size ()); - _disk_writer->set_route (boost::dynamic_pointer_cast (shared_from_this())); - use_new_playlist (data_type()); + use_new_playlist (data_type()); - boost::shared_ptr rp (boost::dynamic_pointer_cast (shared_from_this())); + boost::shared_ptr rp (boost::dynamic_pointer_cast (shared_from_this())); boost::shared_ptr rt = boost::dynamic_pointer_cast (rp); _record_enable_control.reset (new RecordEnableControl (_session, EventTypeMap::instance().to_symbol (RecEnableAutomation), *this)); @@ -118,13 +119,13 @@ Track::init () _session.config.ParameterChanged.connect_same_thread (*this, boost::bind (&Track::parameter_changed, this, _1)); - _monitoring_control->Changed.connect_same_thread (*this, boost::bind (&Track::monitoring_changed, this, _1, _2)); - _record_safe_control->Changed.connect_same_thread (*this, boost::bind (&Track::record_safe_changed, this, _1, _2)); - _record_enable_control->Changed.connect_same_thread (*this, boost::bind (&Track::record_enable_changed, this, _1, _2)); + _monitoring_control->Changed.connect_same_thread (*this, boost::bind (&Track::monitoring_changed, this, _1, _2)); + _record_safe_control->Changed.connect_same_thread (*this, boost::bind (&Track::record_safe_changed, this, _1, _2)); + _record_enable_control->Changed.connect_same_thread (*this, boost::bind (&Track::record_enable_changed, this, _1, _2)); - _input->changed.connect_same_thread (*this, boost::bind (&Track::input_changed, this)); + _input->changed.connect_same_thread (*this, boost::bind (&Track::input_changed, this)); - return 0; + return 0; } void