-
Notifications
You must be signed in to change notification settings - Fork 12
Fix: adds real audiodevice type #488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/ingest-page
Are you sure you want to change the base?
Conversation
| export type TAudioDevice = { | ||
| name: string; | ||
| maxInputChannels: number; | ||
| maxOutputChannels: number; | ||
| defaultSampleRate: number; | ||
| defaultLowInputLatency: number; | ||
| defaultLowOutputLatency: number; | ||
| defaultHighInputLatency: number; | ||
| defaultHighOutputLatency: number; | ||
| isInput: boolean; | ||
| isOutput: boolean; | ||
| hostApiName: string; | ||
| label?: string; | ||
| }; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| export type TAudioDevice = { | |
| name: string; | |
| maxInputChannels: number; | |
| maxOutputChannels: number; | |
| defaultSampleRate: number; | |
| defaultLowInputLatency: number; | |
| defaultLowOutputLatency: number; | |
| defaultHighInputLatency: number; | |
| defaultHighOutputLatency: number; | |
| isInput: boolean; | |
| isOutput: boolean; | |
| hostApiName: string; | |
| label?: string; | |
| }; | |
| export type TAudioDevice = { | |
| name: string; | |
| maxChannels: number; | |
| defaultSampleRate: number; | |
| defaultLowLatency: number; | |
| defaultHighLatency: number; | |
| type: "input" | "output"; | |
| hostApiName: string; | |
| label?: string; | |
| }; | |
| isInput: boolean; | ||
| isOutput: boolean; | ||
| hostApiName: string; | ||
| label?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
label?: string;
or
label: string;
| {d.label && d.label.length > 40 | ||
| ? `${d.label.slice(0, 40)}...` | ||
| : d.label} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{d.label && d.label.length > 40 ? `${d.label.slice(0, 40)}...` : d.label}
This will cause an error on first load if the manager doesn't add label to new audioDevices
malmen237
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to determine if the label is created in the manager or if the UI creates the label, since it's not part of the port-audio original parameters. If it is optional this will lead to some issues, that needs to be fixed.
61818a3 to
70801fb
Compare
Changes the type of the audio device from the mock format to the real format received