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

Method beep

test/browser/test_sdl2_audio_beep.cpp:131–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void Beeper::beep(double toneFrequency, int durationMSecs) {
132 BeepObject bo;
133 bo.toneFrequency = toneFrequency;
134 bo.samplesLeft = durationMSecs * frequency / 1000;
135
136 SDL_LockAudio();
137 beeps.push(bo);
138 SDL_UnlockAudio();
139}
140
141Beeper *beep = 0;
142

Callers 1

nextTestFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected