Update core

This commit is contained in:
Simon Gellis 2024-10-31 21:40:10 -04:00
parent 38b9369511
commit 3c7915fa53
2 changed files with 4 additions and 4 deletions

6
game.c
View File

@ -25,9 +25,9 @@ int onFrame(VB *sim) {
gfxUpdateLeftEye(state->gfx, leftEye); gfxUpdateLeftEye(state->gfx, leftEye);
gfxUpdateRightEye(state->gfx, rightEye); gfxUpdateRightEye(state->gfx, rightEye);
samples = vbGetSamples(sim, NULL, &samplePairs); samples = vbGetSamples(sim, NULL, NULL, &samplePairs);
audioUpdate(&state->aud, samples, samplePairs * 4); audioUpdate(&state->aud, samples, samplePairs * 4);
vbSetSamples(sim, samples, 834); vbSetSamples(sim, samples, VB_S16, 834);
gfxRender(state->gfx); gfxRender(state->gfx);
return 1; return 1;
} }
@ -42,7 +42,7 @@ int runGame(VB *sim, GraphicsContext *gfx) {
state.gfx = gfx; state.gfx = gfx;
audioInit(&state.aud); audioInit(&state.aud);
vbSetSamples(sim, &state.audioBuffer, 834); vbSetSamples(sim, &state.audioBuffer, VB_S16, 834);
vbSetUserData(sim, &state); vbSetUserData(sim, &state);
vbSetFrameCallback(sim, &onFrame); vbSetFrameCallback(sim, &onFrame);

@ -1 +1 @@
Subproject commit bcd80d291b1be0e334bd5da481ca69211b16e6b0 Subproject commit ae22c95dbee3d0b338168bfdf98143e6eddc6c70