diff --git a/game.c b/game.c index 2a93bf5..3461611 100644 --- a/game.c +++ b/game.c @@ -25,9 +25,9 @@ int onFrame(VB *sim) { gfxUpdateLeftEye(state->gfx, leftEye); gfxUpdateRightEye(state->gfx, rightEye); - samples = vbGetSamples(sim, NULL, &samplePairs); + samples = vbGetSamples(sim, NULL, NULL, &samplePairs); audioUpdate(&state->aud, samples, samplePairs * 4); - vbSetSamples(sim, samples, 834); + vbSetSamples(sim, samples, VB_S16, 834); gfxRender(state->gfx); return 1; } @@ -42,7 +42,7 @@ int runGame(VB *sim, GraphicsContext *gfx) { state.gfx = gfx; audioInit(&state.aud); - vbSetSamples(sim, &state.audioBuffer, 834); + vbSetSamples(sim, &state.audioBuffer, VB_S16, 834); vbSetUserData(sim, &state); vbSetFrameCallback(sim, &onFrame); diff --git a/shrooms-vb-core b/shrooms-vb-core index bcd80d2..ae22c95 160000 --- a/shrooms-vb-core +++ b/shrooms-vb-core @@ -1 +1 @@ -Subproject commit bcd80d291b1be0e334bd5da481ca69211b16e6b0 +Subproject commit ae22c95dbee3d0b338168bfdf98143e6eddc6c70