Re: [webaudio] gainNode auto creation with safari

I also realised that adding createGain() inside AudioBufferSource does not work at all with Chrome and Firefox, I was mistaken by some settings I made for Safari. Whoops.. 
So Safari is again late for the party and I should not reference it’s implementations at all. Got it, thanks! 

> On 27 Apr 2020, at 22:49, Raymond Toy <rtoy@google.com> wrote:
> 
> Huh. I didn't know Safari had that.  I have a vague memory that this was part of the original implementation of WebAudio but it was subsequently removed.
> Safari still has the playbackState attribute too, and that I remember very clearly being removed.
> 
> On Mon, Apr 27, 2020 at 11:09 AM Omer Okcuoglu <omer@omerok.com <mailto:omer@omerok.com>> wrote:
> Hi,
> 
> Maybe Safari is being late with new implementations but just discovered Safari automatically creates Gain node inside buffer and bufferSourceNode. I wanted to utilise this approach for Firefox and Chrome and tried to create a Gain node inside AudioBufferSource. This approach did not overwrite Safari’s implementation however. I can access the gain with gain.gain.value in Firefox and Chrome now, but lost the connection to Safari (gain.value). I am sharing the screenshots of the bufferSources for you to compare.
> 
> Is this something to be addressed in the future or safari just being safari and weird for its own purposes? Because it is actually really convenient to have an auto generated gain node passed around with bufferSourceNode.
> 
> <Safari Gain Node.png><Firefox Gain Node.png>
> 
> Thanks,
> Omer

Received on Monday, 27 April 2020 21:20:39 UTC