It seems to me that RealtimeAnalyserNode is working on left channel at present, though these is a Fixme mentioned to mix right channel for stereo case. But I guess a mixed data doesn't really mean anything in the case of real time analyse? Is that possible to change the spec so that the data can be retrieved per dedicated channel upon request? Well, I know you can probably bypass this issue by channel splitter, but seems a little bit tricky, and might not be flexible enough.
Actually, I think that we *do* want to mix stereo to mono and then analyse that instead of just taking the left channel. For individual channel analysis, a splitter can get us any specific channel.
(In reply to comment #1) > Actually, I think that we *do* want to mix stereo to mono and then analyse that instead of just taking the left channel. For individual channel analysis, a splitter can get us any specific channel. Ok, if the design is to use channel splitter to do the work, fine. ;) While , at least we might need to eliminate the need to connect the RealtimeAnalyserNode to a destination node somehow in order to make it pull the data? It's annoying that I need to connect it through a 0 gain node to mute it out...
(In reply to comment #2) > (In reply to comment #1) > > Actually, I think that we *do* want to mix stereo to mono and then analyse that instead of just taking the left channel. For individual channel analysis, a splitter can get us any specific channel. > > Ok, if the design is to use channel splitter to do the work, fine. ;) > > While , at least we might need to eliminate the need to connect the RealtimeAnalyserNode to a destination node somehow in order to make it pull the data? It's annoying that I need to connect it through a 0 gain node to mute it out... Yes, that's true. It might take a little work to implement, but could be nice.
(In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #1) > > > Actually, I think that we *do* want to mix stereo to mono and then analyse that instead of just taking the left channel. For individual channel analysis, a splitter can get us any specific channel. > > > > Ok, if the design is to use channel splitter to do the work, fine. ;) > > > > While , at least we might need to eliminate the need to connect the RealtimeAnalyserNode to a destination node somehow in order to make it pull the data? It's annoying that I need to connect it through a 0 gain node to mute it out... > > Yes, that's true. It might take a little work to implement, but could be nice. so do you have any idea on this, or I can try this work ;)
(In reply to comment #4) > (In reply to comment #3) > > (In reply to comment #2) > > > (In reply to comment #1) > > > > Actually, I think that we *do* want to mix stereo to mono and then analyse that instead of just taking the left channel. For individual channel analysis, a splitter can get us any specific channel. > > > > > > Ok, if the design is to use channel splitter to do the work, fine. ;) > > > > > > While , at least we might need to eliminate the need to connect the RealtimeAnalyserNode to a destination node somehow in order to make it pull the data? It's annoying that I need to connect it through a 0 gain node to mute it out... > > > > Yes, that's true. It might take a little work to implement, but could be nice. > > so do you have any idea on this, or I can try this work ;) I'm sure it can be solved, but somehow the AudioContext has to keep track of such unconnected RealtimeAnalyserNodes, so it can "artificially" pull them. But, then we have to be careful about the lifetime of them... You can think about it if you like. There might be other such nodes in the future, such as a MeteringNode to measure signal level.
channel splitter should do the work