From a26d87628cf5a6a5d292d5a7851a3b7538f98a86 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Mon, 19 Jun 2017 13:30:00 -0700 Subject: [PATCH] RN: Improve Audio for Maintaining Priority Summary: The React Native Remote Debugger page (`debugger.html`) contains an embedded silent sound file to maintain tab priority in Google Chrome. This revision simply replaces the existing one with a better one that has the following characteristics: - 1s Duration - 10Hz Frequency - -48dBFS Amplitude - Fades in/out to reduce audible clicks on loop. - 44.1kHz @ 16bit to maximimize compatibility. - Smaller size. Much thanks to Stephane Pigeon (http://stephanepigeon.com/) for designing the sound file specifically for this use case. Reviewed By: mmmulani Differential Revision: D5273591 fbshipit-source-id: 81668cc0a829e008263907fc1fa7150b72691371 --- local-cli/server/util/debugger.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local-cli/server/util/debugger.html b/local-cli/server/util/debugger.html index 1cc96a69d..2a9fd2d4c 100644 --- a/local-cli/server/util/debugger.html +++ b/local-cli/server/util/debugger.html @@ -89,7 +89,7 @@ const maintainPriorityCheckbox = document.getElementById('maintain-priority'); const silence = document.getElementById('silence'); - silence.volume = 0.001; + silence.volume = 0.1; if (isPriorityMaintained) { silence.play(); } else { @@ -252,6 +252,6 @@

You may also install the standalone version of React Developer Tools to inspect the React component hierarchy, their props, and state.

Status: Loading...

-