Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit 96e25f2

Browse files
Lin SunOlli Syrjälä
Lin Sun
authored and
Olli Syrjälä
committed
Exclude impulse wav files is hrtf is disabled
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)
1 parent a896f08 commit 96e25f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/blink_resources.grd

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
<include name="IDR_LIST_PICKER_CSS" file="../Source/web/resources/listPicker.css" type="BINDATA"/>
5959
<include name="IDR_LIST_PICKER_JS" file="../Source/web/resources/listPicker.js" type="BINDATA"/>
6060
</if>
61-
<if expr="pp_ifdef('use_concatenated_impulse_responses')">
61+
<if expr="pp_ifdef('use_concatenated_impulse_responses') and not pp_ifdef('disable_webaudio_hrtf')">
6262
<include name="IDR_AUDIO_SPATIALIZATION_COMPOSITE" file="../Source/platform/audio/resources/Composite.wav" type="BINDATA"/>
6363
</if>
64-
<if expr="not pp_ifdef('use_concatenated_impulse_responses')">
64+
<if expr="not pp_ifdef('use_concatenated_impulse_responses') and not pp_ifdef('disable_webaudio_hrtf')">
6565
<include name="IDR_AUDIO_SPATIALIZATION_T000_P000" file="..\Source\platform\audio\resources\IRC_Composite_C_R0195_T000_P000.wav" type="BINDATA"/>
6666
<include name="IDR_AUDIO_SPATIALIZATION_T000_P015" file="..\Source\platform\audio\resources\IRC_Composite_C_R0195_T000_P015.wav" type="BINDATA"/>
6767
<include name="IDR_AUDIO_SPATIALIZATION_T000_P030" file="..\Source\platform\audio\resources\IRC_Composite_C_R0195_T000_P030.wav" type="BINDATA"/>

0 commit comments

Comments
 (0)