Skip to content

Commit

Permalink
[Blink] Exclude impulse wav files is hrtf is disabled
Browse files Browse the repository at this point in the history
hrtf means "Head-related transfer function". It's to put the source
in a 3-D related position to the listener. Without this feature,
we can remove all the impluse wav resources.

This patch is backported from the crosswalk-lite branch

BUG=https://crosswalk-project.org/jira/browse/XWALK-3929
TEST=Build with/without flag disable_webaudio_hrtf and simple test on XWalkCoreShell.apk
SIZE_REDUCED=140k(Release build on ARM)
  • Loading branch information
Lin Sun authored and Raphael Kubo da Costa committed Mar 29, 2016
1 parent 7fcd73d commit 14b32ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/WebKit/public/blink_resources.grd
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
<include name="IDR_LIST_PICKER_CSS" file="../Source/web/resources/listPicker.css" type="BINDATA"/>
<include name="IDR_LIST_PICKER_JS" file="../Source/web/resources/listPicker.js" type="BINDATA"/>
</if>
<if expr="use_concatenated_impulse_responses">
<if expr="use_concatenated_impulse_responses and not disable_webaudio_hrtf">
<include name="IDR_AUDIO_SPATIALIZATION_COMPOSITE" file="../Source/platform/audio/resources/Composite.wav" type="BINDATA"/>
</if>
<if expr="not use_concatenated_impulse_responses">
<if expr="not use_concatenated_impulse_responses and not disable_webaudio_hrtf">
<include name="IDR_AUDIO_SPATIALIZATION_T000_P000" file="..\Source\platform\audio\resources\IRC_Composite_C_R0195_T000_P000.wav" type="BINDATA"/>
<include name="IDR_AUDIO_SPATIALIZATION_T000_P015" file="..\Source\platform\audio\resources\IRC_Composite_C_R0195_T000_P015.wav" type="BINDATA"/>
<include name="IDR_AUDIO_SPATIALIZATION_T000_P030" file="..\Source\platform\audio\resources\IRC_Composite_C_R0195_T000_P030.wav" type="BINDATA"/>
Expand Down

0 comments on commit 14b32ff

Please sign in to comment.