diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-04-11 02:55:50 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-04-11 02:55:50 +0300 |
commit | ff0982dd98cd7a828730a3498e3e7b9cd1daf868 (patch) | |
tree | 9fc9e062a9d92b32e9295044015031fb1386d351 | |
parent | a01662baf3163941fcdd886c6da832a3d7f42da4 (diff) | |
download | libADLMIDI-ff0982dd98cd7a828730a3498e3e7b9cd1daf868.tar.gz libADLMIDI-ff0982dd98cd7a828730a3498e3e7b9cd1daf868.tar.bz2 libADLMIDI-ff0982dd98cd7a828730a3498e3e7b9cd1daf868.zip |
Fixed the real-time playing with multi-chip
Damn, Damn, DAMN!
https://github.com/Wohlstand/libADLMIDI/issues/48
-rw-r--r-- | src/adlmidi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index df00706..7e4d457 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -775,7 +775,7 @@ ADLMIDI_EXPORT int adl_generate(struct ADL_MIDIPlayer *device, int sampleCount, { /* Generate data from every chip and mix result */ for(unsigned card = 0; card < chips; ++card) - player->opl.cardsOP2[card]->generate(out_buf, (size_t)in_generatedStereo); + player->opl.cardsOP2[card]->generateAndMix(out_buf, (size_t)in_generatedStereo); } /* Process it */ SendStereoAudio(sampleCount, in_generatedStereo, out_buf, gotten_len, out); |