Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit 11bf695

Browse files
Unreviewed Windows build fix after r266842.
* WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::setHardwareSampleRateOverride): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@266883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 0bb5550 commit 11bf695

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Source/WebKit/ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2020-09-10 Chris Dumez <[email protected]>
2+
3+
Unreviewed Windows build fix after r266842.
4+
5+
* WebProcess/InjectedBundle/InjectedBundle.cpp:
6+
(WebKit::InjectedBundle::setHardwareSampleRateOverride):
7+
18
2020-09-10 Sihui Liu <[email protected]>
29

310
REGRESSION(r266634): [macOS release] 4 layout tests became flaky failures

Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
#include <JavaScriptCore/JSLock.h>
5656
#include <WebCore/ApplicationCache.h>
5757
#include <WebCore/ApplicationCacheStorage.h>
58-
#include <WebCore/AudioDestination.h>
5958
#include <WebCore/CommonVM.h>
6059
#include <WebCore/Document.h>
6160
#include <WebCore/Frame.h>
@@ -87,6 +86,10 @@
8786
#include "WebNotificationManager.h"
8887
#endif
8988

89+
#if ENABLE(WEB_AUDIO)
90+
#include <WebCore/AudioDestination.h>
91+
#endif
92+
9093
namespace WebKit {
9194
using namespace WebCore;
9295
using namespace JSC;
@@ -400,7 +403,11 @@ void InjectedBundle::resetOriginAccessAllowLists()
400403

401404
void InjectedBundle::setHardwareSampleRateOverride(Optional<float> sampleRate)
402405
{
406+
#if ENABLE(WEB_AUDIO)
403407
AudioDestination::setHardwareSampleRateOverride(sampleRate);
408+
#else
409+
UNUSED_PARAM(sampleRate);
410+
#endif
404411
}
405412

406413
void InjectedBundle::setAsynchronousSpellCheckingEnabled(WebPageGroupProxy* pageGroup, bool enabled)

0 commit comments

Comments
 (0)