auido filter

This commit is contained in:
wataru 2023-05-10 02:19:32 +09:00
parent 42d40a79bd
commit 46a5bf7f77
3 changed files with 11 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -108,7 +108,12 @@ export const AudioOutputRow = (_props: AudioOutputRowProps) => {
const hostAPIs = new Set(devices.map(x => { return x.hostAPI }))
const hostAPIOptions = Array.from(hostAPIs).map((x, index) => { return <option value={x} key={index} >{x}</option> })
const filteredDevice = devices.filter(x => { return x.hostAPI == hostApi || hostApi == "" }).map((x, index) => { return <option value={x.index} key={index}>{x.name}</option> })
// const filteredDevice = devices.filter(x => { return x.hostAPI == hostApi || hostApi == "" }).map((x, index) => { return <option value={x.index} key={index}>{x.name}</option> })
const filteredDevice = devices.map((x, index) => {
const className = (x.hostAPI == hostApi || hostApi == "") ? "select-option-red" : ""
return <option className={className} value={x.index} key={index}>{x.name}</option>
})
return (
<div className="body-row split-3-7 left-padding-1 guided">

View File

@ -636,6 +636,10 @@ body {
max-width: 50%;
height: 1.5rem;
}
.select-option-red {
color: #f66;
font-weight: 700;
}
.body-image-container,
.body-wav-container {