Web Audio is the JavaScript-side API that's being used; OpenAL serves as a C-side API in front of it.
If you can get the Web Audio AudioContext object, you should be able to capture that via context.createMediaStreamDestination(): https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamDestination https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode The node's "stream" property will be a MediaStream that you can send into RTC (at which point my knowledge of this system gets a lot fuzzier :D) -- brion On Tue, Aug 22, 2017 at 10:21 AM, Kai Kuehne <kai.kue...@gmail.com> wrote: > Hi, > I'm using the MediaCapture-API to capture the video rendered > to a Canvas by emscripten to send it to another browser via > a RTCPeerConnection. > > How do I access the audio that is being played by emscripten > to also send it across the connection? > > I found a ticket [1] that mentions that one can export the AL object > and access the audio that way. Is this still relevant? > > To be honest, since I'm still in the early stages of development, > I don't know whether the audio is currently being handled by > OpenAL or WebAudio. > > Thanks! > > https://github.com/kripken/emscripten/issues/3599 > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to emscripten-discuss+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.