From 0401ee9f58ea842cb4aef687e8e107380d46445c Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Wed, 25 Oct 2017 03:01:50 +0300 Subject: Clean-up - Move all private variables into MIDIplay class away from public ADL_MIDIPlayer structure - Comment out most of legacy code - Implement new-style ReadVarLenEx for error-checked var-len value reading process TODO: Stabilize this and implement missing fields and API calls (meta-data retreiving) --- src/adlmidi_opl3.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/adlmidi_opl3.cpp') diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index 316c8e1..4878233 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -406,7 +406,7 @@ void OPL3::ChangeVolumeRangesModel(ADLMIDI_VolumeModels volumeModel) } } -void OPL3::Reset() +void OPL3::Reset(unsigned long PCM_RATE) { #ifdef ADLMIDI_USE_DOSBOX_OPL DBOPL::Handler emptyChip; //Constructors inside are will initialize necessary fields @@ -445,9 +445,9 @@ void OPL3::Reset() for(unsigned card = 0; card < NumCards; ++card) { #ifdef ADLMIDI_USE_DOSBOX_OPL - cards[card].Init(_parent->PCM_RATE); + cards[card].Init(PCM_RATE); #else - OPL3_Reset(&cards[card], static_cast(_parent->PCM_RATE)); + OPL3_Reset(&cards[card], static_cast(PCM_RATE)); #endif for(unsigned a = 0; a < 18; ++a) Poke(card, 0xB0 + Channels[a], 0x00); -- cgit v1.2.3