[GStreamer][Qt] WebAudio support
authorphiln@webkit.org <philn@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Aug 2012 14:01:43 +0000 (14:01 +0000)
committerphiln@webkit.org <philn@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Aug 2012 14:01:43 +0000 (14:01 +0000)
commit9d4e895934e542f62fb15c665ab83550d0a004ac
treeeeae4be682342371e95d4f9fb59b5c9c6eee877c
parent04ad930535f14296953de5ce745f9cb7158b6783
[GStreamer][Qt] WebAudio support
https://bugs.webkit.org/show_bug.cgi?id=94806

Reviewed by Simon Hausmann.

Source/WebCore:

Build system changes to support WebAudio and its GStreamer
backend. A new AudioBusQt implementation is also needed to locate
and load local .wav files. Note: WebAudio is still disabled by default in
build-webkit. Use --web-audio to explicitely enable it at build time.

* DerivedSources.pri:
* Target.pri:
* WebCore.pri:
* WebCore.qrc:
* platform/audio/HRTFElevation.cpp:
(WebCore): Use concatenated HRTF impulse response for increased
performance, just like GTK, Mac and EFL ports.
* platform/audio/gstreamer/AudioFileReaderGStreamer.cpp: Undef the
signals macro so gio.h can be properly included.
* platform/audio/qt/AudioBusQt.cpp: Added.
(WebCore):
(WebCore::AudioBus::loadPlatformResource):

Source/WebKit2:

New boolean webAudioEnabled WebSetting to be used at runtime to
toggle WebAudio support on or off.

* UIProcess/API/qt/qwebpreferences.cpp:
(QWebPreferencesPrivate::testAttribute):
(QWebPreferencesPrivate::setAttribute):
(QWebPreferences::webAudioEnabled):
(QWebPreferences::setWebAudioEnabled):
* UIProcess/API/qt/qwebpreferences_p.h:
* UIProcess/API/qt/qwebpreferences_p_p.h:

Tools:

* MiniBrowser/qt/qml/BrowserWindow.qml: Enable WebAudio support.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@126756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.pri
Source/WebCore/Target.pri
Source/WebCore/WebCore.pri
Source/WebCore/WebCore.qrc
Source/WebCore/platform/audio/HRTFElevation.cpp
Source/WebCore/platform/audio/gstreamer/AudioFileReaderGStreamer.cpp
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/qt/qwebpreferences.cpp
Source/WebKit2/UIProcess/API/qt/qwebpreferences_p.h
Source/WebKit2/UIProcess/API/qt/qwebpreferences_p_p.h
Tools/ChangeLog
Tools/MiniBrowser/qt/qml/BrowserWindow.qml