diff options
| author | s-ol <s+removethis@s-ol.nu> | 2026-04-13 18:05:51 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2026-04-13 18:05:51 +0000 |
| commit | a98c602ceaafb67f479e2e917035b8ae443b042e (patch) | |
| tree | fe0587afa529a14e676986bf96bc34f1cb266a48 /README.md | |
| parent | examples/linkhut: fix phase display (diff) | |
| download | lua-abletonlink-a98c602ceaafb67f479e2e917035b8ae443b042e.tar.gz lua-abletonlink-a98c602ceaafb67f479e2e917035b8ae443b042e.zip | |
implement callbacks
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -31,7 +31,12 @@ The module table has three members: Destroys this instance. Calling any other method on a destroyed instance causes an error. This is automatically called in __gc. -- `link:set_*_callback` are not currently implemented. +- `link:pump_events()`: + If callbacks are installed, this needs to be called regularily to dispatch events. + It will return `true` if the internal event queue overran. +- `link:set_num_peers_callback(cb)`: cb is called with number of peers (int). +- `link:set_tempo_callback(cb)`: cb is called with new tempo (int). +- `link:set_start_stop_callback(cb)`: cb is called with playing state (bool). `abl_link_session_state` instances have the following methods: |
