Compare commits
1
Commits
gui
...
3c7915fa53
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3c7915fa53 |
@@ -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
Submodule shrooms-vb-core updated: bcd80d291b...ae22c95dbe
Reference in New Issue
Block a user