virtual ~Session ();
-
- static int find_session (string str, string& path, string& snapshot, bool& isnew);
-
string path() const { return _path; }
string name() const { return _name; }
string snap_name() const { return _current_snapshot_name; }
/* History (for editors, mixers, UIs etc.) */
+ /** Undo some transactions.
+ * @param n Number of transactions to undo.
+ */
void undo (uint32_t n) {
_history.undo (n);
}
static int read_favorite_dirs (FavoriteDirs&);
static int write_favorite_dirs (FavoriteDirs&);
-
- /* file suffixes */
-
- static const char* template_suffix() { return _template_suffix; }
- static const char* statefile_suffix() { return _statefile_suffix; }
- static const char* pending_suffix() { return _pending_suffix; }
/* buffers for gain and pan */
void* ptr,
float opt);
- typedef float (*compute_peak_t) (Sample *, nframes_t, float);
- typedef void (*find_peaks_t) (Sample *, nframes_t, float *, float*);
- typedef void (*apply_gain_to_buffer_t) (Sample *, nframes_t, float);
- typedef void (*mix_buffers_with_gain_t) (Sample *, Sample *, nframes_t, float);
- typedef void (*mix_buffers_no_gain_t) (Sample *, Sample *, nframes_t);
-
- static compute_peak_t compute_peak;
- static find_peaks_t find_peaks;
- static apply_gain_to_buffer_t apply_gain_to_buffer;
- static mix_buffers_with_gain_t mix_buffers_with_gain;
- static mix_buffers_no_gain_t mix_buffers_no_gain;
-
static sigc::signal<void> SendFeedback;
/* Controllables */
nframes_t compute_initial_length ();
- static const char* _template_suffix;
- static const char* _statefile_suffix;
- static const char* _pending_suffix;
-
enum SubState {
PendingDeclickIn = 0x1,
PendingDeclickOut = 0x2,
AudioEngine &_engine;
mutable gint processing_prohibited;
+ /// the function called when the main JACK process callback happens
process_function_type process_function;
process_function_type last_process_function;
bool waiting_for_sync_offset;
/* cache the most-recently requested time conversions. This helps when we
* have multiple clocks showing the same time (e.g. the transport frame) */
bool last_smpte_valid;
- jack_nframes_t last_smpte_when;
+ nframes_t last_smpte_when;
SMPTE::Time last_smpte;
bool _send_smpte_update; ///< Flag to send a full frame (SMPTE) MTC message this cycle
- int send_full_time_code(jack_nframes_t nframes);
- int send_midi_time_code_for_cycle(jack_nframes_t nframes);
+ int send_full_time_code(nframes_t nframes);
+ int send_midi_time_code_for_cycle(nframes_t nframes);
nframes_t adjust_apparent_position (nframes_t frames);