WSS: Fix warning

This commit is contained in:
RichardG867
2023-07-21 16:02:01 -03:00
parent e90c17c4c9
commit 80bc465bf3

View File

@@ -79,14 +79,14 @@ static void
wss_get_buffer(int32_t *buffer, int len, void *priv)
{
wss_t *wss = (wss_t *) priv;
int32_t *opl_buf;
int32_t *opl_buf = NULL;
if (wss->opl_enabled)
opl_buf = wss->opl.update(wss->opl.priv);
ad1848_update(&wss->ad1848);
for (int c = 0; c < len * 2; c++) {
if (wss->opl_enabled)
if (opl_buf)
buffer[c] += opl_buf[c];
buffer[c] += wss->ad1848.buffer[c] / 2;
}