Lines 185-194
Session::Session (AudioEngine &eng,
Link Here
|
185 |
, _base_sample_rate (0) |
185 |
, _base_sample_rate (0) |
186 |
, _nominal_sample_rate (0) |
186 |
, _nominal_sample_rate (0) |
187 |
, _current_sample_rate (0) |
187 |
, _current_sample_rate (0) |
188 |
, _record_status (Disabled) |
|
|
189 |
, _transport_sample (0) |
188 |
, _transport_sample (0) |
190 |
, _seek_counter (0) |
|
|
191 |
, _butler_seek_counter (0) |
192 |
, _session_range_location (0) |
189 |
, _session_range_location (0) |
193 |
, _session_range_is_free (true) |
190 |
, _session_range_is_free (true) |
194 |
, _silent (false) |
191 |
, _silent (false) |
Lines 236-242
Session::Session (AudioEngine &eng,
Link Here
|
236 |
, state_tree (0) |
233 |
, state_tree (0) |
237 |
, state_was_pending (false) |
234 |
, state_was_pending (false) |
238 |
, _state_of_the_state (StateOfTheState (CannotSave | InitialConnecting | Loading)) |
235 |
, _state_of_the_state (StateOfTheState (CannotSave | InitialConnecting | Loading)) |
239 |
, _suspend_save (0) |
|
|
240 |
, _save_queued (false) |
236 |
, _save_queued (false) |
241 |
, _save_queued_pending (false) |
237 |
, _save_queued_pending (false) |
242 |
, _last_roll_location (0) |
238 |
, _last_roll_location (0) |
Lines 248-260
Session::Session (AudioEngine &eng,
Link Here
|
248 |
, _n_lua_scripts (0) |
244 |
, _n_lua_scripts (0) |
249 |
, _butler (new Butler (*this)) |
245 |
, _butler (new Butler (*this)) |
250 |
, _transport_fsm (new TransportFSM (*this)) |
246 |
, _transport_fsm (new TransportFSM (*this)) |
251 |
, _post_transport_work (0) |
|
|
252 |
, _locations (new Locations (*this)) |
247 |
, _locations (new Locations (*this)) |
253 |
, _ignore_skips_updates (false) |
248 |
, _ignore_skips_updates (false) |
254 |
, _rt_thread_active (false) |
249 |
, _rt_thread_active (false) |
255 |
, _rt_emit_pending (false) |
250 |
, _rt_emit_pending (false) |
256 |
, _ac_thread_active (0) |
251 |
, _ac_thread_active (0) |
257 |
, _latency_recompute_pending (0) |
|
|
258 |
, step_speed (0) |
252 |
, step_speed (0) |
259 |
, outbound_mtc_timecode_frame (0) |
253 |
, outbound_mtc_timecode_frame (0) |
260 |
, next_quarter_frame_to_send (-1) |
254 |
, next_quarter_frame_to_send (-1) |
Lines 278-285
Session::Session (AudioEngine &eng,
Link Here
|
278 |
, ltc_timecode_offset (0) |
272 |
, ltc_timecode_offset (0) |
279 |
, ltc_timecode_negative_offset (false) |
273 |
, ltc_timecode_negative_offset (false) |
280 |
, midi_control_ui (0) |
274 |
, midi_control_ui (0) |
281 |
, _punch_or_loop (NoConstraint) |
|
|
282 |
, current_usecs_per_track (1000) |
283 |
, _tempo_map (0) |
275 |
, _tempo_map (0) |
284 |
, _all_route_group (new RouteGroup (*this, "all")) |
276 |
, _all_route_group (new RouteGroup (*this, "all")) |
285 |
, routes (new RouteList) |
277 |
, routes (new RouteList) |
Lines 292-299
Session::Session (AudioEngine &eng,
Link Here
|
292 |
, _total_free_4k_blocks (0) |
284 |
, _total_free_4k_blocks (0) |
293 |
, _total_free_4k_blocks_uncertain (false) |
285 |
, _total_free_4k_blocks_uncertain (false) |
294 |
, no_questions_about_missing_files (false) |
286 |
, no_questions_about_missing_files (false) |
295 |
, _playback_load (0) |
|
|
296 |
, _capture_load (0) |
297 |
, _bundles (new BundleList) |
287 |
, _bundles (new BundleList) |
298 |
, _bundle_xml_node (0) |
288 |
, _bundle_xml_node (0) |
299 |
, _current_trans (0) |
289 |
, _current_trans (0) |
Lines 314-323
Session::Session (AudioEngine &eng,
Link Here
|
314 |
, first_file_data_format_reset (true) |
304 |
, first_file_data_format_reset (true) |
315 |
, first_file_header_format_reset (true) |
305 |
, first_file_header_format_reset (true) |
316 |
, have_looped (false) |
306 |
, have_looped (false) |
317 |
, _have_rec_enabled_track (false) |
|
|
318 |
, _have_rec_disabled_track (true) |
319 |
, _step_editors (0) |
307 |
, _step_editors (0) |
320 |
, _suspend_timecode_transmission (0) |
|
|
321 |
, _speakers (new Speakers) |
308 |
, _speakers (new Speakers) |
322 |
, _ignore_route_processor_changes (0) |
309 |
, _ignore_route_processor_changes (0) |
323 |
, _ignored_a_processor_change (0) |
310 |
, _ignored_a_processor_change (0) |
Lines 329-336
Session::Session (AudioEngine &eng,
Link Here
|
329 |
, _selection (new CoreSelection (*this)) |
316 |
, _selection (new CoreSelection (*this)) |
330 |
, _global_locate_pending (false) |
317 |
, _global_locate_pending (false) |
331 |
, _had_destructive_tracks (false) |
318 |
, _had_destructive_tracks (false) |
332 |
, _update_pretty_names (0) |
|
|
333 |
{ |
319 |
{ |
|
|
320 |
g_atomic_int_set (&_suspend_save, 0); |
321 |
g_atomic_int_set (&_playback_load, 0); |
322 |
g_atomic_int_set (&_capture_load, 0); |
323 |
g_atomic_int_set (&_post_transport_work, 0); |
324 |
g_atomic_int_set (&_processing_prohibited, Disabled); |
325 |
g_atomic_int_set (&_record_status, Disabled); |
326 |
g_atomic_int_set (&_punch_or_loop, NoConstraint); |
327 |
g_atomic_int_set (&_current_usecs_per_track, 1000); |
328 |
g_atomic_int_set (&_have_rec_enabled_track, 0); |
329 |
g_atomic_int_set (&_have_rec_disabled_track, 1); |
330 |
g_atomic_int_set (&_latency_recompute_pending, 0); |
331 |
g_atomic_int_set (&_suspend_timecode_transmission, 0); |
332 |
g_atomic_int_set (&_update_pretty_names, 0); |
333 |
g_atomic_int_set (&_seek_counter, 0); |
334 |
g_atomic_int_set (&_butler_seek_counter, 0); |
335 |
|
334 |
created_with = string_compose ("%1 %2", PROGRAM_NAME, revision); |
336 |
created_with = string_compose ("%1 %2", PROGRAM_NAME, revision); |
335 |
|
337 |
|
336 |
pthread_mutex_init (&_rt_emit_mutex, 0); |
338 |
pthread_mutex_init (&_rt_emit_mutex, 0); |
Lines 6101-6113
Session::add_automation_list(AutomationL
Link Here
|
6101 |
bool |
6103 |
bool |
6102 |
Session::have_rec_enabled_track () const |
6104 |
Session::have_rec_enabled_track () const |
6103 |
{ |
6105 |
{ |
6104 |
return g_atomic_int_get (const_cast<gint*>(&_have_rec_enabled_track)) == 1; |
6106 |
return g_atomic_int_get (&_have_rec_enabled_track) == 1; |
6105 |
} |
6107 |
} |
6106 |
|
6108 |
|
6107 |
bool |
6109 |
bool |
6108 |
Session::have_rec_disabled_track () const |
6110 |
Session::have_rec_disabled_track () const |
6109 |
{ |
6111 |
{ |
6110 |
return g_atomic_int_get (const_cast<gint*>(&_have_rec_disabled_track)) == 1; |
6112 |
return g_atomic_int_get (&_have_rec_disabled_track) == 1; |
6111 |
} |
6113 |
} |
6112 |
|
6114 |
|
6113 |
/** Update the state of our rec-enabled tracks flag */ |
6115 |
/** Update the state of our rec-enabled tracks flag */ |
Lines 7150-7156
Session::auto_connect_thread_run ()
Link Here
|
7150 |
} |
7152 |
} |
7151 |
} |
7153 |
} |
7152 |
|
7154 |
|
7153 |
|
|
|
7154 |
if (_midi_ports && g_atomic_int_get (&_update_pretty_names)) { |
7155 |
if (_midi_ports && g_atomic_int_get (&_update_pretty_names)) { |
7155 |
boost::shared_ptr<Port> ap = boost::dynamic_pointer_cast<Port> (vkbd_output_port ()); |
7156 |
boost::shared_ptr<Port> ap = boost::dynamic_pointer_cast<Port> (vkbd_output_port ()); |
7156 |
if (ap->pretty_name () != _("Virtual Keyboard")) { |
7157 |
if (ap->pretty_name () != _("Virtual Keyboard")) { |