ardour/libs/temporal/temporal
Robin Gareus 1288262ca7
Fix div/zero, allow switching backends
When switching backends, the effective sample-rate is zero.
This only affects the butler thread (the only active thread when
stopped). The actual issue here is the butler calling
"non-realtime-stop" without a backend. However fixing 0/0
generally seems appropriate.
```
#0 in int_div_round<long>(long, long) (x=0, y=0) at ../libs/pbd/pbd/integer_division.h:36
#1 in Temporal::samples_to_superclock(int64_t, int) (samples=0, sr=0) at ../libs/temporal/temporal/superclock.h:39
#2 in Temporal::timepos_t::timepos_t(long) (this=0x7f94bc0a5890, s=0) at ../libs/temporal/temporal/timeline.h:55
#3 in ARDOUR::Automatable::non_realtime_locate(long) (this=0x55a12a980cc8, now=0) at ../libs/ardour/automatable.cc:421
#4 in ARDOUR::Route::non_realtime_locate(long) (this=0x55a12a980ae0, pos=0) at ../libs/ardour/route.cc:5462
#5 in ARDOUR::Session::non_realtime_stop(bool, int, bool&) (this=0x55a12e0cd000, abort=false, on_entry=1, finished=@0x7f94bc0a5e0f: true) at ../libs/ardour/session_transport.cc:1487
#6 in ARDOUR::Session::butler_transport_work(bool) (this=0x55a12e0cd000, have_process_lock=false) at ../libs/ardour/session_transport.cc:1153
#7 in ARDOUR::Butler::thread_work() (this=0x55a12f3b7000) at ../libs/ardour/butler.cc:222
#8 in ARDOUR::Butler::_thread_work(void*) (arg=0x55a12f3b7000) at ../libs/ardour/butler.cc:16
```
2021-09-11 04:54:40 +02:00
..
bbt_time.h temporal: add to_string() converters for BBT_Offset 2021-08-31 16:45:44 -06:00
beats.h A few visibility changes needed for linking to libtemporal (when building with MSVC) 2021-09-04 12:28:15 +01:00
debug.h add new debug bit for Temporal grid stuff 2021-08-13 12:51:32 -06:00
range.h Initial changes needed for building libtemporal with MSVC 2021-08-29 11:03:58 +01:00
superclock.h Fix div/zero, allow switching backends 2021-09-11 04:54:40 +02:00
tempo-experiment.h first pass at integrating nutempo v1 with new 64 bit superclock/ticks representation 2021-08-13 12:51:28 -06:00
tempo.h A few visibility changes needed for linking to libtemporal (when building with MSVC) 2021-09-04 12:28:15 +01:00
time.h Fix remaining doxygen warnings (!) 2019-09-30 21:03:29 +02:00
timeline.h Initial changes needed for building libtemporal with MSVC 2021-08-29 11:03:58 +01:00
types.h Initial changes needed for building libtemporal with MSVC 2021-08-29 11:03:58 +01:00
types_convert.h add missing file 2021-08-13 12:51:29 -06:00
visibility.h libtemporal: changes derived from converting libardour 2021-08-13 12:51:28 -06:00