aboutsummaryrefslogtreecommitdiff
path: root/src/chips/esfmu_opl3.h
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2025-03-24 13:20:42 +0300
committerWohlstand <admin@wohlnet.ru>2025-03-24 13:20:42 +0300
commit0868e68e0ea879652dd8841fab1d569d78345755 (patch)
treee80c90058f5b3b4cc72c2e96a469e380f6de1a6f /src/chips/esfmu_opl3.h
parentbee3fd0d7460d449a167b732213a7fc0cd43cfe9 (diff)
downloadlibADLMIDI-0868e68e0ea879652dd8841fab1d569d78345755.tar.gz
libADLMIDI-0868e68e0ea879652dd8841fab1d569d78345755.tar.bz2
libADLMIDI-0868e68e0ea879652dd8841fab1d569d78345755.zip
ESFMu: Added custom queue
as built-in is faulty
Diffstat (limited to 'src/chips/esfmu_opl3.h')
-rw-r--r--src/chips/esfmu_opl3.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/chips/esfmu_opl3.h b/src/chips/esfmu_opl3.h
index b01d784..43eb09a 100644
--- a/src/chips/esfmu_opl3.h
+++ b/src/chips/esfmu_opl3.h
@@ -26,6 +26,20 @@
class ESFMuOPL3 final : public OPLChipBaseT<ESFMuOPL3>
{
void *m_chip;
+
+ static const size_t c_queueSize = 500;
+
+ struct Reg
+ {
+ uint32_t addr;
+ uint8_t data;
+ };
+
+ Reg m_queue[c_queueSize];
+ size_t m_headPos;
+ size_t m_tailPos;
+ long m_queueCount;
+
public:
ESFMuOPL3();
~ESFMuOPL3() override;