audio() added tyoes for windows

This commit is contained in:
Sebastian Hildebrandt 2022-11-18 10:34:47 +01:00
parent 5ccd2b91c2
commit fca6924063

View File

@ -31,6 +31,7 @@ function parseAudioType(str, input, output) {
str = str.toLowerCase();
let result = '';
if (str.indexOf('input') >= 0) { result = 'Microphone'; }
if (str.indexOf('display audio') >= 0) { result = 'Speaker'; }
if (str.indexOf('speak') >= 0) { result = 'Speaker'; }
if (str.indexOf('laut') >= 0) { result = 'Speaker'; }
@ -42,6 +43,8 @@ function parseAudioType(str, input, output) {
if (str.indexOf('controll') >= 0) { result = 'Controller'; }
if (str.indexOf('line o') >= 0) { result = 'Line Out'; }
if (str.indexOf('digital o') >= 0) { result = 'Digital Out'; }
if (str.indexOf('smart sound technology') >= 0) { result = 'Digital Signal Processor'; }
if (str.indexOf('high definition audio') >= 0) { result = 'Sound Driver'; }
if (!result && output) {
result = 'Speaker';