Files
voculinux/src/vocalinux/audio/errors.py
T
xavierk b0d8afad92
CI / security (push) Successful in 1m18s
CI / lint (push) Successful in 23s
CI / ai-review (push) Skipped
fix(audio): never open the microphone for system audio, never swap a configured mic (#48)
System-audio capture sets stream.capture.sink on the spawned pw-record, so PipeWire links only the sink monitor. An explicit microphone that is missing, renamed, virtual or output-only now fails with an Audio Input Unavailable notification instead of recording from the default input.

Fixes #41
Fixes #42
2026-11-06 18:35:19 +00:00

15 lines
510 B
Python

"""Errors shared by microphone and system-audio capture sources."""
class CaptureStalledError(IOError):
"""The capture device stopped delivering audio frames."""
class AudioDeviceUnavailableError(IOError):
"""The configured capture device cannot be used as configured.
Raised instead of recording from another input: a configured device that
is missing, renamed, virtual or output-only must fail visibly (issue #42).
The message is user-facing and names the configured device.
"""