From e5c607123588b318f28022488d74790fc1b7bebe Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 25 Feb 2011 17:00:45 +0000 Subject: Move playback_distance up to AudioDiskstream from Diskstream since it is only used there. git-svn-id: svn://localhost/ardour2/branches/3.0@8958 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/midi_diskstream.cc | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'libs/ardour/midi_diskstream.cc') diff --git a/libs/ardour/midi_diskstream.cc b/libs/ardour/midi_diskstream.cc index 96a34c661c..50ad39c576 100644 --- a/libs/ardour/midi_diskstream.cc +++ b/libs/ardour/midi_diskstream.cc @@ -496,8 +496,6 @@ MidiDiskstream::process (framepos_t transport_frame, pframes_t nframes, bool can bool nominally_recording; bool re = record_enabled (); - playback_distance = 0; - check_record_status (transport_frame, can_record); nominally_recording = (can_record && re); @@ -559,25 +557,10 @@ MidiDiskstream::process (framepos_t transport_frame, pframes_t nframes, bool can } if (rec_nframes) { - /* data will be written to disk */ - - if (rec_nframes == nframes && rec_offset == 0) { - playback_distance = nframes; - } - adjust_capture_position = rec_nframes; - - } else if (nominally_recording) { - - /* XXXX do this for MIDI !!! - can't do actual capture yet - waiting for latency effects to finish before we start - */ - - playback_distance = nframes; - } - + ret = 0; if (commit (nframes)) { -- cgit v1.2.3