File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -194,12 +194,20 @@ function projectDefaultDevice(host, kind) {
194194
195195function sortHosts ( hosts ) {
196196 return [ ...hosts ]
197- . map ( ( host ) => ( {
198- id : host . id ,
199- devices_ok : host . devices_ok ,
200- default_input_device : projectDefaultDevice ( host , 'input' ) ,
201- default_output_device : projectDefaultDevice ( host , 'output' ) ,
202- } ) )
197+ . map ( ( host ) => {
198+ if ( host . id === 'jack' ) {
199+ return {
200+ id : host . id ,
201+ devices_ok : host . devices_ok ,
202+ } ;
203+ }
204+ return {
205+ id : host . id ,
206+ devices_ok : host . devices_ok ,
207+ default_input_device : projectDefaultDevice ( host , 'input' ) ,
208+ default_output_device : projectDefaultDevice ( host , 'output' ) ,
209+ } ;
210+ } )
203211 . sort ( ( a , b ) => a . id . localeCompare ( b . id , 'en' ) ) ;
204212}
205213
You can’t perform that action at this time.
0 commit comments