audio type improved

This commit is contained in:
Sebastian Hildebrandt 2021-01-25 21:41:48 +01:00
parent 67f5e6cc53
commit c82b25aebd

View File

@ -39,6 +39,8 @@ function parseAudioType(str, input, output) {
if (str.indexOf('mikr') >= 0) { result = 'Microphone'; }
if (str.indexOf('phone') >= 0) { result = 'Phone'; }
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 (!result && output) {
result = 'Speaker';