Emscripten: No need for Runtime. for dynCalls
authorAlon Zakai <alonzakai@gmail.com>
Tue, 29 Jan 2019 12:21:22 +0000
changeset 1258162f26ad46749
parent 12580 e5c1992fcd8b
child 12582 57b136cff952
Emscripten: No need for Runtime. for dynCalls
src/audio/emscripten/SDL_emscriptenaudio.c
     1.1 --- a/src/audio/emscripten/SDL_emscriptenaudio.c	Tue Jan 29 12:19:36 2019 +0000
     1.2 +++ b/src/audio/emscripten/SDL_emscriptenaudio.c	Tue Jan 29 12:21:22 2019 +0000
     1.3 @@ -291,7 +291,7 @@
     1.4                      if ((SDL2 === undefined) || (SDL2.capture === undefined)) { return; }
     1.5                      audioProcessingEvent.outputBuffer.getChannelData(0).fill(0.0);
     1.6                      SDL2.capture.currentCaptureBuffer = audioProcessingEvent.inputBuffer;
     1.7 -                    Runtime.dynCall('vi', $2, [$3]);
     1.8 +                    dynCall('vi', $2, [$3]);
     1.9                  };
    1.10                  SDL2.capture.mediaStreamNode.connect(SDL2.capture.scriptProcessorNode);
    1.11                  SDL2.capture.scriptProcessorNode.connect(SDL2.audioContext.destination);
    1.12 @@ -307,7 +307,7 @@
    1.13              SDL2.capture.silenceBuffer.getChannelData(0).fill(0.0);
    1.14              var silence_callback = function() {
    1.15                  SDL2.capture.currentCaptureBuffer = SDL2.capture.silenceBuffer;
    1.16 -                Runtime.dynCall('vi', $2, [$3]);
    1.17 +                dynCall('vi', $2, [$3]);
    1.18              };
    1.19  
    1.20              SDL2.capture.silenceTimer = setTimeout(silence_callback, ($1 / SDL2.audioContext.sampleRate) * 1000);
    1.21 @@ -326,7 +326,7 @@
    1.22              SDL2.audio.scriptProcessorNode['onaudioprocess'] = function (e) {
    1.23                  if ((SDL2 === undefined) || (SDL2.audio === undefined)) { return; }
    1.24                  SDL2.audio.currentOutputBuffer = e['outputBuffer'];
    1.25 -                Runtime.dynCall('vi', $2, [$3]);
    1.26 +                dynCall('vi', $2, [$3]);
    1.27              };
    1.28              SDL2.audio.scriptProcessorNode['connect'](SDL2.audioContext['destination']);
    1.29          }, this->spec.channels, this->spec.samples, HandleAudioProcess, this);