Allow gain factor for audio sources.
[ardour.git] / libs / ardour / ardour / file_source.h
index 9b4c2ccffc3f106493760f7a07e2ee65238c1fe8..0f3b9bce669388690c33d58f77854fcb09651e00 100644 (file)
@@ -56,9 +56,12 @@ public:
         void mark_immutable_except_write();
        void mark_nonremovable ();
 
-       const std::string& take_id ()        const { return _take_id; }
+       const std::string&   take_id ()        const { return _take_id; }
        bool                 within_session () const { return _within_session; }
        uint16_t             channel()         const { return _channel; }
+       float                gain()            const { return _gain; }
+
+       virtual void set_gain (float g, bool temporarily = false) { _gain = g; }
 
        int set_state (const XMLNode&, int version);
 
@@ -111,6 +114,7 @@ public:
        uint16_t    _channel;
        bool        _within_session;
        std::string _origin;
+       float       _gain;
 };
 
 } // namespace ARDOUR