MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / update

Function update

test/browser/test_sdl_audio_beep.cpp:208–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void update() {
209 SDL_LockAudio();
210 int size = beep->beeps.size();
211 SDL_UnlockAudio();
212 if (size == 0 && beep) {
213 delete beep;
214 beep = 0;
215#ifdef __EMSCRIPTEN__
216 emscripten_async_call(nextTest, 0, 1500);
217#else
218 SDL_Delay(1500);
219 nextTest();
220#endif
221 }
222}
223
224void audio_callback(void *_beeper, Uint8 *_stream, int _length) {
225 Beeper* beeper = (Beeper*) _beeper;

Callers 2

mainFunction · 0.70
updateMethod · 0.50

Calls 2

nextTestFunction · 0.70
sizeMethod · 0.65

Tested by

no test coverage detected