View Issue Details

IDProjectCategoryView StatusLast Update
0001974OpenMPTlibopenmptpublic2026-06-11 12:11
Reportercs127 Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionsuspended 
PlatformanyOSany 
Product VersionOpenMPT 1.32.10.00 / libopenmpt 0.8.7 (current stable) 
Summary0001974: Sync callbacks in libopenmpt
Description

It would be nice for libopenmpt modules to accept a callback function to be called when a sync command (Wxx in XM) is encountered.
For IT and MPTM, the sync command could be implemented as another F0 F0 macro.

I'll try to code this and submit a PR myself if I get the chance, but I thought I'd open this issue in case I can't.

TagsNo tags attached.
Has the bug occurred in previous versions?
Tested code revision (in case you know it)

Relationships

related to 0001373 resolvedSaga Musix Fasttracker 2 Custom Sync Event (Wxx) not implemented in OpenMPT 
related to 0001017 new Tick boundary rendering (was: Provide access to next play position) 

Activities

manx

manx

2026-06-11 12:10

administrator   ~0006692

We really do not want this implemented as callbacks. Callbacks are difficult to map to other languages. They also fundamentally cannot correctly track timing information because they would be called from within an intermediate internal step from inside a _read() call. Please see issue 0001017 for how this should be designed. Once the rendering can get correctly quantized to ticks, the library user can just query the current row to get the desired syncing information.

Issue History

Date Modified Username Field Change
2026-06-11 03:44 cs127 New Issue
2026-06-11 03:47 cs127 Description Updated
2026-06-11 06:05 StarWolf3000 Relationship added related to 0001373
2026-06-11 12:06 manx Relationship added related to 0001017
2026-06-11 12:10 manx Note Added: 0006692
2026-06-11 12:11 manx Status new => closed
2026-06-11 12:11 manx Resolution open => suspended