From c521479ef9d9676e08fcd6751fde7330dce189e7 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 14 Aug 2022 13:06:00 -0400 Subject: [PATCH] Add 0.5s mp3 redirectable resource Command used to generate 0.5s mp3 file: ffmpeg -ar 48000 -t 0.5 -f s16le -acodec pcm_s16le -ac 2 -i /dev/zero -acodec libmp3lame -aq 4 noop-0.5s.mp3 Related filter issue: - https://github.com/uBlockOrigin/uAssets/issues/14231 --- src/js/redirect-engine.js | 2 ++ src/web_accessible_resources/noop-0.5s.mp3 | Bin 0 -> 2349 bytes 2 files changed, 2 insertions(+) create mode 100644 src/web_accessible_resources/noop-0.5s.mp3 diff --git a/src/js/redirect-engine.js b/src/js/redirect-engine.js index e30a802e2..062317f59 100644 --- a/src/js/redirect-engine.js +++ b/src/js/redirect-engine.js @@ -144,6 +144,8 @@ const redirectableResources = new Map([ alias: [ 'noopmp3-0.1s', 'abp-resource:blank-mp3' ], data: 'blob', } ], + [ 'noop-0.5s.mp3', { + } ], [ 'noop-1s.mp4', { alias: 'noopmp4-1s', data: 'blob', diff --git a/src/web_accessible_resources/noop-0.5s.mp3 b/src/web_accessible_resources/noop-0.5s.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..b82866bbfb7192b387707bdb71d620c81ed892d3 GIT binary patch literal 2349 zcmeZtF=k-^0p*b3U{@f`&%nU!lUSB!YN2Ojsb^?l0G5Ri|9^)d@vt*J^V0HxGC*S( z#26Sj85k6RKnny+fxrO-ynrAS1QLKC3j|7mpaBHBfM6;JEC7L3K(G}A4gkR^5V#5i z4?y4*5PSuJ|3Cn83DC{SKsTG3fH*Lq!VG0`GMu=0lj;9&krW304-5>MKw%CB23`dQ z21X!S0^|ajCJhV>EIy9DuErpLgI$P5;FSyw1(`2Lz