MCPcopy Index your code
hub / github.com/callstack/agent-device / normalizeHostSystemAudioProbeData

Function normalizeHostSystemAudioProbeData

src/daemon/audio-probe.ts:123–137  ·  view source on GitHub ↗
(
  value: unknown,
  probe: NonNullable<SessionState['audioProbe']>,
)

Source from the content-addressed store, hash-verified

121}
122
123function normalizeHostSystemAudioProbeData(
124 value: unknown,
125 probe: NonNullable<SessionState['audioProbe']>,
126): AudioProbeResult {
127 return normalizeAudioProbeRecord(value, {
128 source: probe.source,
129 backend: probe.backend,
130 durationMs: probe.durationMs,
131 elapsedMs: Date.now() - probe.startedAt,
132 bucketMs: probe.bucketMs,
133 activeFallback: true,
134 sourceCount: probe.sourceCount,
135 notes: probe.notes,
136 });
137}
138
139function finalizeHostSystemAudioProbeStatus(
140 status: AudioProbeResult | undefined,

Callers 1

Calls 1

Tested by

no test coverage detected