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
15 lines
510 B
Python
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.
|
|
"""
|