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

Function update

test/browser/test_sdl2_audio_beep.cpp:201–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void update() {
202 SDL_LockAudio();
203 int size = beep->beeps.size();
204 SDL_UnlockAudio();
205 if (size == 0 && beep) {
206 delete beep;
207 beep = 0;
208#ifdef __EMSCRIPTEN__
209 emscripten_async_call(nextTest, 0, 1500);
210#else
211 SDL_Delay(1500);
212 nextTest();
213#endif
214 }
215}
216
217void audio_callback(void *_beeper, Uint8 *_stream, int _length) {
218 Beeper* beeper = (Beeper*) _beeper;

Callers 1

mainFunction · 0.70

Calls 2

nextTestFunction · 0.70
sizeMethod · 0.65

Tested by

no test coverage detected