osx - Is it possible to output more than 8 channels with Web Audio API? -
i'm experimenting web sound api command playback of interactive music in multi channel setup. far i've managed direct sound of 8 oscillators 8 different channels on 12 channel sound card, seek utilize more 8 channels, channels gets muted. after lot of research notice audiocontext.currenttime
gets stuck on value near zero.
this result mac osx 10.8.5 google chrome version 39.0.2171.27 beta (64-bit) , version 40.0.2192.0 canary (64-bit).
safari not allow me address more 2 channels firefox finds 12 channels audiocontext.destination.maxchannelcount
keeps on routing sound channel 1 & 2 no matter if seek connect oscillator higher number gain.connect(channelmerger, 0, i)
.
has come across similar? there workarounds?
here code:
var audiocontext = window.audiocontext || window.webkitaudiocontext; var audiocontext = new audiocontext(); var maxchannelcount = audiocontext.destination.maxchannelcount; // if set max 8 works fine in chrome, line // breaks sound if sound card has got more 8 channels audiocontext.destination.channelcount = maxchannelcount; audiocontext.destination.channelcountmode = "explicit"; audiocontext.destination.channelinterpretation = "discrete"; var channelmerger = audiocontext.createchannelmerger(maxchannelcount); channelmerger.channelcount = 1; channelmerger.channelcountmode = "explicit"; channelmerger.channelinterpretation = "discrete"; channelmerger.connect(audiocontext.destination); for(var = 0; < maxchannelcount; i++){ var oscillator = audiocontext.createoscillator(); oscillator.connect(channelmerger, 0, i); oscillator.start(0); }
osx audio web-audio
No comments:
Post a Comment