fix up file renaming code a little bit
[ardour.git] / libs / ardour / ardour / auditioner.h
index 6114da0552996568b707c4d7f36cf3fdaf987567..e7d3347cb66b342e68478cf0f6dd5816f6fd7fd0 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2001 Paul Davis 
+    Copyright (C) 2001 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -39,6 +39,8 @@ class Auditioner : public AudioTrack
        Auditioner (Session&);
        ~Auditioner ();
 
+        int init ();
+
        void audition_region (boost::shared_ptr<Region>);
 
        ARDOUR::AudioPlaylist& prepare_playlist ();
@@ -46,24 +48,26 @@ class Auditioner : public AudioTrack
 
        int  play_audition (nframes_t nframes);
 
-       void cancel_audition () { 
-               g_atomic_int_set (&_active, 0);
+       void cancel_audition () {
+               g_atomic_int_set (&_auditioning, 0);
        }
 
-       bool active() const { return g_atomic_int_get (&_active); }
+       bool auditioning() const { return g_atomic_int_get (&_auditioning); }
+        bool needs_monitor() const { return via_monitor; }
 
   private:
        boost::shared_ptr<AudioRegion> the_region;
        nframes_t current_frame;
-       mutable gint _active;
+       mutable gint _auditioning;
        Glib::Mutex lock;
        nframes_t length;
+        bool via_monitor;
 
        void drop_ports ();
        static void *_drop_ports (void *);
        void actually_drop_ports ();
        void output_changed (IOChange, void*);
-};     
+};
 
 }; /* namespace ARDOUR */