Exposing and accessing Audio

2017-08-22 Thread Kai Kuehne
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

Re: Similar Function Elimination

2017-08-22 Thread arnab choudhury
Thanks for catching this caiiycuk - I can repro and will have a fix out shortly. Looks like a name-clash bug in the minified name generator SFE uses. On Tuesday, August 22, 2017 at 10:17:15 AM UTC-7, caiiiycuk wrote: > > While trying to reproduce asm.js error, I found another problem. SFE >

Re: Similar Function Elimination

2017-08-22 Thread Александр Гурьянов
Great. I will try to reproduce asm.js bug. Btw, if you build roll-a-ball project in Unity, then output will be in Unity format (also js, but with Unity loader, Unity staff). You can find emscripten output in Project/Library/webgl_cache/linkresult_asm/ folder. 2017-08-22 23:15 GMT+07:00 arnab

Re: Similar Function Elimination

2017-08-22 Thread arnab choudhury
So - replacing 'Module["asm"] =' with 'var asm =' in build.asm.js followed by an attempt to run SFE succeeds. I see the following reduction (around 8%). 08/22/2017 09:15 AM19,782,571 build.asm.js 08/22/2017 09:39 AM18,225,058 build.asm.reduced.js I think the core problem

Re: Similar Function Elimination

2017-08-22 Thread Александр Гурьянов
While trying to reproduce asm.js error, I found another problem. SFE wan't work with -g2 flag, you can reporduce this problem with latest emscripten: ./emcc -O2 -g2 -s USE_COCOS2D=3 -s ASM_JS=1 --std=c++11 ./tests/cocos2d_hello.cpp --preload-file

Re: Similar Function Elimination

2017-08-22 Thread arnab choudhury
Hi caiiycuk I'll have an update here shortly. I would love to be able to reproduce the non-asm.js bug since we have extensive tests for this at Tableau. I'm trying out the roll-a-ball project right now, will get back shortly. Regards, Arnab On Tuesday, August 22, 2017 at 3:07:44 AM UTC-7,

Re: Exposing and accessing Audio

2017-08-22 Thread Brion Vibber
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():

Re: Similar Function Elimination

2017-08-22 Thread Александр Гурьянов
> So - replacing 'Module["asm"] =' with 'var asm =' in build.asm.js followed by > an attempt to run SFE succeeds. I see the following reduction (around 8%). Hmm, no luck. Do you build Roll-a-ball with unity or you use my archive. I tried you soultion on my build and it's does not work. Steps:

Re: Similar Function Elimination

2017-08-22 Thread arnab choudhury
Hello caiiycuk I just pushed an update to master - can you try pulling and trying on build.asm.js from your share? Thanks! -Arnab On Tuesday, August 22, 2017 at 10:37:41 AM UTC-7, caiiiycuk wrote: > > > So - replacing 'Module["asm"] =' with 'var asm =' in build.asm.js > followed by an

Re: Similar Function Elimination

2017-08-22 Thread arnab choudhury
Hello caiiycuk - the latest commit to the master branch fixes this issue. Please let me know if you see any issues. Thanks for the due diligence! Regards, Arnab On Tuesday, August

Re: Similar Function Elimination

2017-08-22 Thread Александр Гурьянов
As I see using SFE breaks asm.js validity? On my another project sfe produce js less on 500Kb (from 6.5Mb), but FF says: TypeError: asm.js type error: double is not a subtype of intish 2017-08-22 11:33 GMT+07:00 Александр Гурьянов : > Roll a ball project:

Deprecation notice: In Emscripten 1.37.20 and newer, C functions emscripten_set/get_canvas_size() are deprecated

2017-08-22 Thread Jukka Jylänki
Hi all, there are two Emscripten functions that are getting deprecated. In #include , there are void emscripten_set_canvas_size(int width, int height); void emscripten_get_canvas_size(int *width, int *height, int *isFullscreen); which should not be relied on in the future. The replacing

Re: Deprecation notice: In Emscripten 1.37.20 and newer, C functions emscripten_set/get_canvas_size() are deprecated

2017-08-22 Thread Floh
Thanks for the heads-up! I was still using both functions in my code, replacing them now :) Am Dienstag, 22. August 2017 09:09:52 UTC+2 schrieb jj: > > Hi all, > > there are two Emscripten functions that are getting deprecated. In > #include , there are > > void emscripten_set_canvas_size(int