Skip to content

Commit 66e6390

Browse files
committed
Moved to EMSCRIPTEN_KEEPALIVE
1 parent 597baf2 commit 66e6390

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/webaudio/audioworklet_emscripten_locks.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
// - emscripten_lock_release()
1111
// - emscripten_get_now() in AW
1212

13-
// Marks a function to be kept in the Module and exposed to script (instead of adding to EXPORTED_FUNCTIONS)
14-
#ifndef KEEP_IN_MODULE
15-
#define KEEP_IN_MODULE __attribute__((used, visibility("default")))
16-
#endif
17-
1813
// This needs to be big enough for a stereo output (1024 with a 128 frame) + working stack
1914
#define AUDIO_STACK_SIZE 2048
2015

@@ -147,7 +142,7 @@ bool mainLoop(double time, void* data) {
147142
return true;
148143
}
149144

150-
KEEP_IN_MODULE void startTest() {
145+
EMSCRIPTEN_KEEPALIVE void startTest() {
151146
startTime = emscripten_get_now();
152147
if (emscripten_audio_context_state(context) != AUDIO_CONTEXT_STATE_RUNNING) {
153148
emscripten_resume_audio_context_sync(context);

0 commit comments

Comments
 (0)