doing it better

This commit is contained in:
Ben Allen 2020-03-28 01:30:24 +00:00
parent f39a9d2232
commit d3a80134fb

View file

@ -291,7 +291,18 @@ function LibraryColumn() {
function MicControl() { function MicControl() {
const state = useSelector((state: RootState) => state.mixer.mic); const state = useSelector((state: RootState) => state.mixer.mic);
const [gotMicList, setGotMicList] = useState(false);
const dispatch = useDispatch(); const dispatch = useDispatch();
if (gotMicList == false){
console.log(navigator.mediaDevices.enumerateDevices())
setGotMicList(true)
}
function reduceToInputs(){
}
return ( return (
<div className="sp-col" style={{ height: "48%", overflowY: "visible" }}> <div className="sp-col" style={{ height: "48%", overflowY: "visible" }}>
<h2>Microphone</h2> <h2>Microphone</h2>