MCPcopy Index your code
hub / github.com/CapSoftware/Cap / micListChanged

Function micListChanged

apps/desktop/src/utils/devices.ts:87–94  ·  view source on GitHub ↗
(
	oldList: MicrophoneWithDetails[],
	newList: string[],
)

Source from the content-addressed store, hash-verified

85}
86
87function micListChanged(
88 oldList: MicrophoneWithDetails[],
89 newList: string[],
90): boolean {
91 if (oldList.length !== newList.length) return true;
92 const oldNames = new Set(oldList.map((m) => m.name));
93 return newList.some((name) => !oldNames.has(name));
94}
95
96export function createStableDevicesQuery(
97 enabled: Accessor<boolean> = () => true,

Callers 1

createStableDevicesQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected