mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
temporal: fix comment explaining when/how TempoMap::set() can be used
This commit is contained in:
parent
a1e9dfb672
commit
f17a516cef
1 changed files with 6 additions and 1 deletions
|
|
@ -705,7 +705,12 @@ class /*LIBTEMPORAL_API*/ TempoMap : public PBD::StatefulDestructible
|
||||||
*/
|
*/
|
||||||
|
|
||||||
LIBTEMPORAL_API static SharedPtr read() { return _map_mgr.reader(); }
|
LIBTEMPORAL_API static SharedPtr read() { return _map_mgr.reader(); }
|
||||||
LIBTEMPORAL_API static void set (SharedPtr new_map) { _tempo_map_p = new_map; /* new_map must have been fetched with read() */ }
|
|
||||||
|
/* Because WritableSharedPtr can be implicitly cast to SharedPtr, this
|
||||||
|
* can be used on either a write_copy()'ed map, or one obtained via the
|
||||||
|
* RCU reader() method.
|
||||||
|
*/
|
||||||
|
LIBTEMPORAL_API static void set (SharedPtr new_map) { _tempo_map_p = new_map; }
|
||||||
|
|
||||||
/* API for typical tempo map changes */
|
/* API for typical tempo map changes */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue