-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebAudio API as DirectShow (Audio) replacement #8
Comments
Hi, the reason why FileStream (DShow9) has not simply been ported, but somehow been replaced by FileStream (HTML5 VVVVjs), is because it needed some additional output pins (e.g. Network Status). This made it a kind of self-contained thing. Right now, FileStream (HTML5 VVVVjs) only supports video files (it in fact it creates a hidden Audio-processing nodes like FFT or ScopeSpread would then use the Does this somehow comply with how you designed your FileStream node? |
This is how i think audio part should look https://gist.github.com/3078669 . Looks like Web Audio API don't need audio tag, but maybe i'm wrong - still new in web programming. |
From what I read in the last hour, there's no need for the
One could get the source node for audio processing like this, I guess: https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioElementIntegration I don't know if there are any disadvantages of this method, however. |
Sounds right, thx for the link. I check tomorrow how your node operates with Video tag and will try to integrate Audio part, that will depend on file extension. |
I see you have already done plenty of work on the audio stuff. How's it going? I'm very excited about that... anything ready to try out already? |
Yep, just check audio visualisation example. Placed in examples folder in my fork. If it's working for you, you can merge it with core repo, but i think we need to disqous some stuff about dshow9 category previously. For example, i think we can move AoudioOutput to DShow9 group, this will allow us to remove dummy module. Also, i started reimplementing VVVV's utility methods, need to be sure if i doing all right. Also i checked vvvv.core.js and vvvv.js with JSLint utility and fixed all warnings. Is it ok? Maybe it will be hard to merge, but i hope not. |
Ok super, I'll try it now. Making it JSLint conform is nice. Don't think, those changes will cause trouble when mergin. I saw you removed the check in Pin.setValue() again, which is good, because I was not sure about that anyway. I might have abused this behaviour to force-trigger pin changes in some nodes. I'm currently downloading from your repo. It's like 100MB in size. I think we shouldn't keep example media in the repo, but load it from somewhere else. |
Oyeah, that's great, hah! A few things I noticed while checking briefly:
Also, it doesn't work with Firefox, of course... maybe we should evaluate if https://github.com/corbanbrook/audionode.js could help here. Great job! :) |
Hi. Thx for checking, will try to fix this bugs today. I think audio bug is appearing because i creating multiple audio contexts. We should create only one audio context per appliction, so every node can access it. Where is the place for such global variables? About Firefox, my node is based on w3c audio interfaces specification, so i hope it will work in it in future versions. Btw, i will check the library, that you suggested, maybe i missed something. |
I guess the bug with the filename change is because there's something like this: if (filenameIn.pinIsChanged()) {
...
createAudio();
...
} which will create a new audio tag, no matter if there's already one, right? The old one will then just remain in the DOM and keep playing. |
Hello. Currently i'm thinking about implementing ScopeSpread and stuck at Audio ecosystem. I started to write my own FileStream node, but found your own FileStream (Canvas VVVVjs). Do i need to write my own FileStream (DirectShow), that will output Audio as an Object, that contains audio buffer, or i can somehow modify your node? I'm asking this because i found, that you have implemented VideoTexture node, but can't find any DirectShow object.
The text was updated successfully, but these errors were encountered: