From 5977e653fd7969647a3baf11a0b69774fa4e628f Mon Sep 17 00:00:00 2001 From: cam900 Date: Sun, 14 Jul 2024 15:26:06 +0900 Subject: [PATCH] Add sample length warning for OPL4 PCM --- src/gui/sampleEdit.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/sampleEdit.cpp b/src/gui/sampleEdit.cpp index 88337e39c..573ba85b9 100644 --- a/src/gui/sampleEdit.cpp +++ b/src/gui/sampleEdit.cpp @@ -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; }