diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-04-03 23:36:12 +0200 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-09-18 11:40:53 -0400 |
commit | 35c7274cc96a04f166df78249e66ae4a32a53a66 (patch) | |
tree | 99794daed4a289bf9164d0864d46f4773397fbaa /libs/ardour/disk_writer.cc | |
parent | d16ae875be9d113c3cb0ec9e8311f3bb5dab9bfa (diff) |
remove Diskstream from Track and derivatives; get ardour to actually startup
Diffstat (limited to 'libs/ardour/disk_writer.cc')
-rw-r--r-- | libs/ardour/disk_writer.cc | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/libs/ardour/disk_writer.cc b/libs/ardour/disk_writer.cc index 32d22fb1ae..be6763e088 100644 --- a/libs/ardour/disk_writer.cc +++ b/libs/ardour/disk_writer.cc @@ -25,6 +25,7 @@ #include "ardour/audio_buffer.h" #include "ardour/audioplaylist.h" #include "ardour/audioregion.h" +#include "ardour/butler.h" #include "ardour/debug.h" #include "ardour/disk_writer.h" #include "ardour/midi_playlist.h" @@ -497,12 +498,6 @@ DiskWriter::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, nominally_recording = (can_record && re); - Glib::Threads::Mutex::Lock sm (state_lock, Glib::Threads::TRY_LOCK); - - if (!sm.locked()) { - return; - } - // Safeguard against situations where process() goes haywire when autopunching // and last_recordable_frame < first_recordable_frame @@ -883,8 +878,6 @@ DiskWriter::seek (framepos_t frame, bool complete_refill) ChannelList::iterator chan; boost::shared_ptr<ChannelList> c = channels.reader(); - Glib::Threads::Mutex::Lock lm (state_lock); - for (n = 0, chan = c->begin(); chan != c->end(); ++chan, ++n) { (*chan)->buf->reset (); } @@ -1697,3 +1690,13 @@ DiskWriter::use_destructive_playlist () /* the source list will never be reset for a destructive track */ } + +void +DiskWriter::adjust_buffering () +{ + boost::shared_ptr<ChannelList> c = channels.reader(); + + for (ChannelList::iterator chan = c->begin(); chan != c->end(); ++chan) { + (*chan)->resize (_session.butler()->audio_diskstream_capture_buffer_size()); + } +} |