Webaudio implemention for channel mixing lacks of something related to quad
Created attachment 140482 [details] Patch
Currently, the support in channel mixing does not cover quad. But how they should be is described in the spec: https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#UpMix I find that it doesn't work correctly when up mixing from mono to quad, from quad to 5.1 and down mixing from quad to mono, from quad to stereo. So I have modified the AudioBus.cpp to make it work. Additionally, I have written the corresponding layout tests for them. In the layout tests, I check the rendered data in js, not just render a .wav file. So I rewrite all the layout tests related to channel mixing and remove the corresponding .wav file.
Thanks for the patch. I've looked quickly at it and it seems generally good. I need to look in more detail...
Created attachment 146221 [details] Patch
Fix a minor bug in my patch..Now the patch should be correct. Chris, please have a look at the patch and let me know if it need improvement. Thanks.
Comment on attachment 146221 [details] Patch Clearing review flag on patches from before 2014. If this patch is still relevant, please reset the r? flag.