Update core
This commit is contained in:
parent
38b9369511
commit
3c7915fa53
6
game.c
6
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);
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit bcd80d291b1be0e334bd5da481ca69211b16e6b0
|
||||
Subproject commit ae22c95dbee3d0b338168bfdf98143e6eddc6c70
|
Loading…
Reference in New Issue