Merge pull request #2515 from lemondrops/bugfix/sbprov2_crash
Fix a crash with Sound Blaster Pro v2
This commit is contained in:
@@ -314,7 +314,7 @@ sb_get_buffer_sbpro(int32_t *buffer, int len, void *p)
|
|||||||
|
|
||||||
if (sb->opl_enabled) {
|
if (sb->opl_enabled) {
|
||||||
sb->opl.reset_buffer(sb->opl.priv);
|
sb->opl.reset_buffer(sb->opl.priv);
|
||||||
if (sb->dsp.sb_type != SBPRO)
|
if (sb->dsp.sb_type == SBPRO)
|
||||||
sb->opl2.reset_buffer(sb->opl2.priv);
|
sb->opl2.reset_buffer(sb->opl2.priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user