mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-03 00:33:57 +03:00
auido filter
This commit is contained in:
parent
42d40a79bd
commit
46a5bf7f77
2
client/demo/dist/index.js
vendored
2
client/demo/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -108,7 +108,12 @@ export const AudioOutputRow = (_props: AudioOutputRowProps) => {
|
|||||||
const hostAPIs = new Set(devices.map(x => { return x.hostAPI }))
|
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 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 (
|
return (
|
||||||
<div className="body-row split-3-7 left-padding-1 guided">
|
<div className="body-row split-3-7 left-padding-1 guided">
|
||||||
|
@ -636,6 +636,10 @@ body {
|
|||||||
max-width: 50%;
|
max-width: 50%;
|
||||||
height: 1.5rem;
|
height: 1.5rem;
|
||||||
}
|
}
|
||||||
|
.select-option-red {
|
||||||
|
color: #f66;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
.body-image-container,
|
.body-image-container,
|
||||||
.body-wav-container {
|
.body-wav-container {
|
||||||
|
Loading…
Reference in New Issue
Block a user