E-MU 8000: Update in the correct handler.

This commit is contained in:
OBattler
2024-03-01 13:46:54 +01:00
parent 3727dd9981
commit d77fc47408

View File

@@ -402,6 +402,9 @@ sb_get_buffer_sb16_awe32(int32_t *buffer, int len, void *priv)
sb_dsp_update(&sb->dsp);
if (sb->dsp.sb_type > SB16)
emu8k_update(&sb->emu8k);
for (int c = 0; c < len * 2; c += 2) {
out_l = 0.0;
out_r = 0.0;
@@ -491,9 +494,6 @@ sb_get_music_buffer_sb16_awe32(int32_t *buffer, int len, void *priv)
if (sb->opl_enabled)
opl_buf = sb->opl.update(sb->opl.priv);
if (sb->dsp.sb_type > SB16)
emu8k_update(&sb->emu8k);
for (int c = 0; c < len * 2; c += 2) {
out_l = 0.0;
out_r = 0.0;