xmp-openmpt: An XMPlay input plugin based on OpenMPT

Started by saga,

saga

Quote from: MaxkatsurIt worked by setting priority format "S3M" in OpenMPT plugin settings.
Note that if you only want to use the OpenMPT plugin for S3M files with Adlib instrument, you can also choose the "don't use built-in decoder on Adlib files" in XMPlay's module settings.

Quote from: MaxkatsurHowever, it doesn't support automatic resizing of MOD Pattern Display; the very OpenMPT doesn't really has custom pattern displays that can be resized either manually or automatically.
Do you mean the fact that it does not react to the "Auto-resize to fit contents" option in XMPlay? I am not sure if third-party plugins can react to the same way as XMPlay's built-in pattern vis can; I think this behaviour is new in XMPlay 4.0 and there is no API for it? Maybe Ian can weigh in on this.

Ian @ un4seen

The plugin can tell XMPlay what vis display size is needed by implementing the VisSize function, which XMPlay will call when auto-resize is enabled. That function receives the current size, which it can modify as needed, eg. set the width to fit all channels:

void WINAPI VisSize(HDC dc, SIZE *size)
{
    size->cx = channels * column_width + extra_width;
}