Use consistent name for preferred device IDs
This commit is contained in:
@@ -277,8 +277,8 @@ class ControlledAudioOutput
|
|||||||
this.deviceSelection$,
|
this.deviceSelection$,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
(available, selectId) => {
|
(available, preferredId) => {
|
||||||
const id = selectId ?? available.keys().next().value;
|
const id = preferredId ?? available.keys().next().value;
|
||||||
return id === undefined
|
return id === undefined
|
||||||
? undefined
|
? undefined
|
||||||
: { id, virtualEarpiece: id === EARPIECE_CONFIG_ID };
|
: { id, virtualEarpiece: id === EARPIECE_CONFIG_ID };
|
||||||
|
|||||||
Reference in New Issue
Block a user