aboutsummaryrefslogtreecommitdiff
path: root/sokol_audio.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2018-10-07 16:19:20 +0200
committerAndre Weissflog <floooh@gmail.com>2018-10-07 16:19:20 +0200
commit7413fe5c30becccb7ab21f850d36c4f1f4c94247 (patch)
tree9c7e7e4d9daea30f50c1ff25f2734253f48aeef4 /sokol_audio.h
parent2fb4d3565e695b41fb399810eaf0f7ac7110e54c (diff)
sokol_audio.h: don't depend on emscripten ccall/cwrap
Diffstat (limited to 'sokol_audio.h')
-rw-r--r--sokol_audio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_audio.h b/sokol_audio.h
index c96d2f07..1c63d891 100644
--- a/sokol_audio.h
+++ b/sokol_audio.h
@@ -1141,7 +1141,7 @@ EM_JS(int, _saudio_js_init, (int sample_rate, int num_channels, int buffer_size)
Module._saudio_node = Module._saudio_context.createScriptProcessor(buffer_size, 0, num_channels);
Module._saudio_node.onaudioprocess = function pump_audio(event) {
var num_frames = event.outputBuffer.length;
- var ptr = Module.ccall('_saudio_emsc_pull', 'number', ['number'], [num_frames]);
+ var ptr = __saudio_emsc_pull(num_frames);
if (ptr) {
var num_channels = event.outputBuffer.numberOfChannels;
for (var chn = 0; chn < num_channels; chn++) {