Implement MediaStreamSource::setAudioFormat()
https://bugs.webkit.org/show_bug.cgi?id=106053

Reviewed by Kenneth Russell.

Source/Platform:

* chromium/public/WebAudioDestinationConsumer.h:
(WebAudioDestinationConsumer):

Source/WebCore:

MediaStreamAudioDestinationNode needs to be able to tell its associated
MediaStreamSource about the audio format (number of channels and sample-rate).

* Modules/webaudio/MediaStreamAudioDestinationNode.cpp:
(WebCore::MediaStreamAudioDestinationNode::MediaStreamAudioDestinationNode):
* platform/audio/AudioDestinationConsumer.h:
(AudioDestinationConsumer):
* platform/chromium/support/WebMediaStreamSource.cpp:
(ConsumerWrapper):
(WebKit::ConsumerWrapper::setFormat):
(WebKit):
* platform/mediastream/MediaStreamSource.cpp:
(WebCore::MediaStreamSource::setAudioFormat):
(WebCore):
* platform/mediastream/MediaStreamSource.h:
(MediaStreamSource):


git-svn-id: https://svn.webkit.org/repository/webkit/trunk/Source/Platform/chromium/public@138895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 file changed
tree: 84e582fc64b5828ffe363a486dee46eabddff9d3
  1. android/
  2. default/
  3. linux/
  4. mac/
  5. win/
  6. Platform.h
  7. WebAnimation.h
  8. WebAnimationCurve.h
  9. WebAnimationDelegate.h
  10. WebAudioBus.h
  11. WebAudioDestinationConsumer.h
  12. WebAudioDevice.h
  13. WebBlobData.h
  14. WebBlobRegistry.h
  15. WebCanvas.h
  16. WebClipboard.h
  17. WebColor.h
  18. WebCommon.h
  19. WebCompositorOutputSurface.h
  20. WebCompositorSupport.h
  21. WebContentLayer.h
  22. WebContentLayerClient.h
  23. WebCookie.h
  24. WebCookieJar.h
  25. WebCString.h
  26. WebData.h
  27. WebDragData.h
  28. WebExternalTextureLayer.h
  29. WebExternalTextureLayerClient.h
  30. WebFileInfo.h
  31. WebFileSystem.h
  32. WebFileUtilities.h
  33. WebFilterOperation.h
  34. WebFilterOperations.h
  35. WebFlingAnimator.h
  36. WebFloatAnimationCurve.h
  37. WebFloatKeyframe.h
  38. WebFloatPoint.h
  39. WebFloatQuad.h
  40. WebFloatRect.h
  41. WebGamepad.h
  42. WebGamepads.h
  43. WebGestureCurve.h
  44. WebGestureCurveTarget.h
  45. WebGraphicsContext3D.h
  46. WebGraphicsMemoryAllocation.h
  47. WebGraphicsMemoryStats.h
  48. WebHTTPBody.h
  49. WebHTTPHeaderVisitor.h
  50. WebHTTPLoadInfo.h
  51. WebImage.h
  52. WebImageLayer.h
  53. WebInputHandler.h
  54. WebInputHandlerClient.h
  55. WebIOSurfaceLayer.h
  56. WebLayer.h
  57. WebLayerScrollClient.h
  58. WebLayerTreeView.h
  59. WebLayerTreeViewClient.h
  60. WebLocalizedString.h
  61. WebMediaConstraints.h
  62. WebMediaStreamCenter.h
  63. WebMediaStreamCenterClient.h
  64. WebMediaStreamComponent.h
  65. WebMediaStreamDescriptor.h
  66. WebMediaStreamSource.h
  67. WebMediaStreamSourcesRequest.h
  68. WebMessagePortChannel.h
  69. WebMessagePortChannelClient.h
  70. WebMimeRegistry.h
  71. WebNonCopyable.h
  72. WebPluginListBuilder.h
  73. WebPoint.h
  74. WebPrerender.h
  75. WebPrerenderingSupport.h
  76. WebPrivateOwnPtr.h
  77. WebPrivatePtr.h
  78. WebRect.h
  79. WebReferrerPolicy.h
  80. WebRenderingStats.h
  81. WebRTCConfiguration.h
  82. WebRTCDataChannelHandler.h
  83. WebRTCDataChannelHandlerClient.h
  84. WebRTCICECandidate.h
  85. WebRTCPeerConnectionHandler.h
  86. WebRTCPeerConnectionHandlerClient.h
  87. WebRTCSessionDescription.h
  88. WebRTCSessionDescriptionRequest.h
  89. WebRTCStatsRequest.h
  90. WebRTCStatsResponse.h
  91. WebRTCVoidRequest.h
  92. WebScreenInfo.h
  93. WebScrollbar.h
  94. WebScrollbarLayer.h
  95. WebScrollbarThemeGeometry.h
  96. WebScrollbarThemePainter.h
  97. WebSharedGraphicsContext3D.h
  98. WebSize.h
  99. WebSocketStreamError.h
  100. WebSocketStreamHandle.h
  101. WebSocketStreamHandleClient.h
  102. WebSolidColorLayer.h
  103. WebStorageArea.h
  104. WebStorageNamespace.h
  105. WebString.h
  106. WebThread.h
  107. WebThreadSafeData.h
  108. WebTransformAnimationCurve.h
  109. WebTransformationMatrix.h
  110. WebTransformKeyframe.h
  111. WebTransformOperations.h
  112. WebURL.h
  113. WebURLError.h
  114. WebURLLoader.h
  115. WebURLLoaderClient.h
  116. WebURLLoadTiming.h
  117. WebURLRequest.h
  118. WebURLResponse.h
  119. WebVector.h
  120. WebVideoFrame.h
  121. WebVideoFrameProvider.h
  122. WebVideoLayer.h
  123. WebWorkerRunLoop.h