WebAudio task shouldn't be running on suspend to reduce usage of CPU.
[framework/web/webkit-efl.git] / Source / WebCore / Modules / webaudio / DefaultAudioDestinationNode.cpp
index 8c43329..369dd9e 100644 (file)
@@ -97,6 +97,14 @@ void DefaultAudioDestinationNode::startRendering()
         m_destination->start();
 }
 
+#if ENABLE(TIZEN_WEB_AUDIO)
+void DefaultAudioDestinationNode::pauseRendering()
+{
+    ASSERT(isInitialized());
+    if (isInitialized())
+        m_destination->stop();
+}
+#endif
 } // namespace WebCore
 
 #endif // ENABLE(WEB_AUDIO)