Add sample length warning for OPL4 PCM

This commit is contained in:
cam900 2024-07-14 15:26:06 +09:00
parent cf341b39a3
commit 5977e653fd

View file

@ -402,6 +402,12 @@ void FurnaceGUI::drawSampleEdit() {
SAMPLE_WARN(warnLength,_("GBA DMA: sample length will be padded to multiple of 16"));
}
break;
case DIV_SYSTEM_OPL4:
case DIV_SYSTEM_OPL4_DRUMS:
if (sample->samples>65535) {
SAMPLE_WARN(warnLength,_("OPL4: maximum sample length is 65535"));
}
break;
default:
break;
}