[Webkit-unassigned] [Bug 76509] Lazy init for DefaultAudioDestinationNode?

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 20 19:29:02 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=76509





--- Comment #3 from Raymond <rgbbones at gmail.com>  2012-01-20 19:29:02 PST ---
Well, it's not that simple as I thought before. The sampleRate() function is called in the AudioContext constructor, which required the m_destination to be available.

While, I think that sampleRate() function is already provided by AudioNode, so why not just use it, after all , the current AudioDestination implementation just return the same sampleRate passed in during construction. Thus AudioDestinationNode and AudioDestination share the same sampleRate. And if later we need to dynamic adjust sampleRate, we might set sample rate from AudioDestination to AudioDestinationNode.

Anyway, the result is the patch attached

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list