obey monitor=disk when recording also; remove debug output
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 20 Oct 2011 19:20:44 +0000 (19:20 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 20 Oct 2011 19:20:44 +0000 (19:20 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10258 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/audio_diskstream.cc
libs/ardour/audio_track.cc

index 436506c857ebee22aa867cfed52781339e684a56..f5733cd6a498f1f12bcadb5a9fa140aa913979ee 100644 (file)
@@ -56,6 +56,7 @@
 #include "ardour/send.h"
 #include "ardour/session.h"
 #include "ardour/source_factory.h"
+#include "ardour/track.h"
 #include "ardour/utils.h"
 #include "ardour/session_playlists.h"
 #include "ardour/route.h"
@@ -566,7 +567,7 @@ AudioDiskstream::process (framepos_t transport_frame, pframes_t nframes, bool ca
                collect_playback = true;
        }
 
-       if (collect_playback) {
+       if ((_track->monitoring() & MonitorDisk) || collect_playback) {
 
                /* we're doing playback */
 
index b22b28d277cc8a2830584b6bdb30fa611561bc81..64e83ddb0d084817e2d3a03fe79def81ac5293d7 100644 (file)
@@ -403,16 +403,15 @@ AudioTrack::roll (pframes_t nframes, framepos_t start_frame, framepos_t end_fram
                _input->process_input (_meter, start_frame, end_frame, nframes);
        }
 
-       if ((_monitoring & MonitorInput) || 
-           (!(_monitoring & MonitorDisk) && 
-            (diskstream->record_enabled() && !can_record && !_session.config.get_auto_input()))) {
+       if ((_monitoring & MonitorInput) || (!(_monitoring & MonitorDisk) && 
+                                            (diskstream->record_enabled() && 
+                                             !can_record && 
+                                             !_session.config.get_auto_input()))) {
                
                /* not actually recording, but we want to hear the input material anyway,
                   at least potentially (depending on monitoring options)
                 */
 
-               cerr << name() << " do the passthru thing with monitoring = " << enum_2_string (_monitoring) << endl;
-
                passthru (start_frame, end_frame, nframes, false);
 
        } else if ((b = diskstream->playback_buffer(0)) != 0) {