<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>web3d v4 draft specs > Sound component</div><div>Recommendation: remove gain field except from Gain node</div><div><br></div>I wasn't part of the deliberations on sound component. And am early in implementation And with Draft cycles tapering if I'm going to say something I should say it soon.</div><div dir="ltr"><br></div><div dir="ltr">While implementing v4 sound nodes I see a gain field in many of the nodes which isn't in the web audio equivalent nodes. <br><div>When implementing, I can pair a gain node internally and connect, to implement the gain field. </div><div>DISBENEFIT: doubles the number of audio nodes and connections in the audio graph which may affect performance, and with no clear benefit other than occasional convenience. </div><div><br></div><div>Web audio expects scene designers to parent a Gain node when needed. And web3d v4 specs have a Gain node, so could follow web audio protocols, and parent a Gain node where needed.</div><div>For historical purposes Sound node has intensity. In v4 a gain fields was added. To implement internally a pair a Gain node and connect, and set the gain to intensity * gain. In other words, we don't need 2 fields doing the same thing. Intensity is sufficient for backward compatibility.</div><div>If there were arguments in the discussions about convenience, then one convenience point for built in coupling of gain node would be AudioDestination -- on the final output.</div><div>It seems more appropriate to let the orthogonal Gain node do the job of gain, and let other nodes do their job.</div><div><br></div><div>-Doug Sanden, Jan 25, 2023</div><div><br></div></div></div></div>