Skip to content
Snippets Groups Projects
Commit 707b8446 authored by Greg Fodor's avatar Greg Fodor
Browse files

Fix up tone to be less annoying

parent 0e761383
No related branches found
No related tags found
No related merge requests found
...@@ -142,9 +142,17 @@ class UIRoot extends Component { ...@@ -142,9 +142,17 @@ class UIRoot extends Component {
setTimeout(() => this.setState({ tonePlaying: false }), 2000); setTimeout(() => this.setState({ tonePlaying: false }), 2000);
}; };
playTone(); // Delay initial tone slightly so we don't always hear it.
const toneInterval = setInterval(playTone, 5000); setTimeout(() => {
this.setState({ toneInterval, entryStep: ENTRY_STEPS.audio_setup }); if (this.state.entryStep === ENTRY_STEPS.audio_setup) {
playTone();
const toneInterval = setInterval(playTone, 5000);
this.setState({ toneInterval });
}
}, 2500);
this.setState({ entryStep: ENTRY_STEPS.audio_setup });
} }
fetchMicDevices = async () => { fetchMicDevices = async () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment