aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_opl3.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-10-25 03:01:50 +0300
committerWohlstand <admin@wohlnet.ru>2017-10-25 03:01:50 +0300
commit0401ee9f58ea842cb4aef687e8e107380d46445c (patch)
tree900ba7dad4b6bb70bad88c401cff1494884de2bb /src/adlmidi_opl3.cpp
parent6783770a8533dd099b39c51a5c3f7f5f4000b4bc (diff)
downloadlibADLMIDI-0401ee9f58ea842cb4aef687e8e107380d46445c.tar.gz
libADLMIDI-0401ee9f58ea842cb4aef687e8e107380d46445c.tar.bz2
libADLMIDI-0401ee9f58ea842cb4aef687e8e107380d46445c.zip
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)
Diffstat (limited to 'src/adlmidi_opl3.cpp')
-rw-r--r--src/adlmidi_opl3.cpp6
1 files changed, 3 insertions, 3 deletions
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<Bit32u>(_parent->PCM_RATE));
+ OPL3_Reset(&cards[card], static_cast<Bit32u>(PCM_RATE));
#endif
for(unsigned a = 0; a < 18; ++a) Poke(card, 0xB0 + Channels[a], 0x00);