void set_auto_punch_location (Location *);
void set_auto_loop_location (Location *);
void set_session_extents (framepos_t start, framepos_t end);
+ bool end_is_free () const { return _session_range_end_is_free; }
void set_end_is_free (bool);
int location_name(std::string& result, std::string base = std::string(""));
framepos_t transport_frame () const {return _transport_frame; }
framepos_t record_location () const {return _last_record_location; }
- framepos_t audible_frame () const;
+ framepos_t audible_frame (bool* latent_locate = NULL) const;
framepos_t requested_return_frame() const { return _requested_return_frame; }
void set_requested_return_frame(framepos_t return_to);
bool synced_to_mtc () const { return config.get_external_sync() && Config->get_sync_source() == MTC && g_atomic_int_get (const_cast<gint*>(&_mtc_active)); }
bool synced_to_ltc () const { return config.get_external_sync() && Config->get_sync_source() == LTC && g_atomic_int_get (const_cast<gint*>(&_ltc_active)); }
- double transport_speed() const { return _transport_speed; }
+ double transport_speed() const { return _count_in_samples > 0 ? 0. : _transport_speed; }
bool transport_stopped() const { return _transport_speed == 0.0; }
- bool transport_rolling() const { return _transport_speed != 0.0; }
+ bool transport_rolling() const { return _transport_speed != 0.0 && _count_in_samples == 0; }
bool silent () { return _silent; }
uint32_t registered_lua_function_count () const { return _n_lua_scripts; }
void scripts_changed (); // called from lua, updates _n_lua_scripts
+ PBD::Signal0<void> LuaScriptsChanged;
+
/* flattening stuff */
boost::shared_ptr<Region> write_one_track (Track&, framepos_t start, framepos_t end,
/* session-wide solo/mute/rec-enable */
+ bool muted() const;
+ std::vector<boost::weak_ptr<AutomationControl> > cancel_all_mute ();
+
bool soloing() const { return _non_soloed_outs_muted; }
bool listening() const { return _listen_cnt > 0; }
bool solo_isolated() const { return _solo_isolated_cnt > 0; }
PBD::Signal1<void,bool> SoloActive;
PBD::Signal0<void> SoloChanged;
+ PBD::Signal0<void> MuteChanged;
PBD::Signal0<void> IsolatedChanged;
PBD::Signal0<void> MonitorChanged;
void request_preroll_record_punch (framepos_t start, framecnt_t preroll);
void request_preroll_record_trim (framepos_t start, framecnt_t preroll);
+ void request_count_in_record ();
framepos_t preroll_record_punch_pos () const { return _preroll_record_punch_pos; }
bool preroll_record_punch_enabled () const { return _preroll_record_punch_pos >= 0; }
*/
static PBD::Signal3<int,Session*,std::string,DataType> MissingFile;
+ void set_missing_file_replacement (const std::string& mfr) {
+ _missing_file_replacement = mfr;
+ }
+
/** Emitted when the session wants Ardour to quit */
static PBD::Signal0<void> Quit;
bool _under_nsm_control;
unsigned int _xrun_count;
+ std::string _missing_file_replacement;
+
void mtc_status_changed (bool);
PBD::ScopedConnection mtc_status_connection;
void ltc_status_changed (bool);
static const PostTransportWork ProcessCannotProceedMask =
PostTransportWork (
PostTransportInputChange|
- PostTransportSpeed|
PostTransportReverse|
PostTransportCurveRealloc|
PostTransportAudition|
typedef std::list<Click*> Clicks;
Clicks clicks;
bool _clicking;
+ bool _click_rec_only;
boost::shared_ptr<IO> _click_io;
boost::shared_ptr<Amp> _click_gain;
Sample* click_data;
framepos_t _preroll_record_punch_pos;
framecnt_t _preroll_record_trim_len;
+ bool _count_in_once;
/* main outs */
uint32_t main_outs;
void auto_connect_master_bus ();
- /* Windows VST support */
-
- long _windows_vst_callback (
- WindowsVSTPlugin*,
- long opcode,
- long index,
- long value,
- void* ptr,
- float opt
- );
-
int find_all_sources (std::string path, std::set<std::string>& result);
int find_all_sources_across_snapshots (std::set<std::string>& result, bool exclude_this_snapshot);