mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Make RCU reader return a const pointer (omnibus commit)
This commit is contained in:
parent
e9f71824a1
commit
295dbd8e1e
58 changed files with 745 additions and 776 deletions
|
|
@ -9,7 +9,7 @@ function factory () return function ()
|
|||
tm = nil
|
||||
|
||||
-- set initial tempo to 140, ramp to 120 over the first 4/4 bar, then continue at BPM 80
|
||||
local tm = Temporal.TempoMap.fetch_writable ()
|
||||
local tm = Temporal.TempoMap.write_copy ()
|
||||
tm:set_tempo (Temporal.Tempo (140, 120, 4), Temporal.timepos_t (0))
|
||||
tm:set_tempo (Temporal.Tempo (120, 80, 4), Temporal.timepos_t.from_ticks (Temporal.ticks_per_beat * 4))
|
||||
tm:set_tempo (Temporal.Tempo (80, 80, 4), Temporal.timepos_t.from_ticks (Temporal.ticks_per_beat * 4))
|
||||
|
|
@ -21,10 +21,10 @@ function factory () return function ()
|
|||
tm = nil
|
||||
|
||||
-- Abort Edit example
|
||||
-- after every call to Temporal.TempoMap.fetch_writable ()
|
||||
-- after every call to Temporal.TempoMap.write_copy ()
|
||||
-- there must be a matching call to
|
||||
-- Temporal.TempoMap.update() or Temporal.TempoMap.abort_update()
|
||||
Temporal.TempoMap.fetch_writable()
|
||||
Temporal.TempoMap.write_copy()
|
||||
Temporal.TempoMap.abort_update()
|
||||
|
||||
end end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue