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

Method beep

test/browser/test_sdl_audio_beep.cpp:137–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137void Beeper::beep(double toneFrequency, int durationMSecs) {
138 BeepObject bo;
139 bo.toneFrequency = toneFrequency;
140 bo.samplesLeft = durationMSecs * frequency / 1000;
141
142 SDL_LockAudio();
143 beeps.push(bo);
144 SDL_UnlockAudio();
145}
146
147Beeper *beep = 0;
148

Callers 1

nextTestFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected