Fixed missing update function in Adlib Gold - stops looping samples when sample playback is disabled.

This commit is contained in:
SarahW 2016-04-12 19:47:44 +01:00
commit 10739b9618

View file

@ -659,6 +659,8 @@ static void adgold_get_buffer(int16_t *buffer, int len, void *p)
int c;
opl3_update2(&adgold->opl);
adgold_update(adgold);
for (c = 0; c < len * 2; c += 2)
{
adgold_buffer[c] = ((adgold->opl.buffer[c] * adgold->fm_vol_l) >> 7) / 2;