Pulseaudio

pulseaudio中源的概念是什麼?

  • November 30, 2020

pulseaudio中關於sink和source的經典概念:關於sink和source的

概念

PulseAudio clients can send audio to "sinks" and receive audio from "sources".
So sinks are outputs (audio goes there), sources are inputs (audio comes from there).

sources在我的電腦中顯示所有內容:

pactl list sources short
0   alsa_output.default.monitor module-alsa-sink.c  s32le 2ch 48000Hz   SUSPENDED
1   null.monitor    module-null-sink.c  s16le 2ch 44100Hz   SUSPENDED
2   fifo_output.monitor module-pipe-sink.c  s16le 2ch 44100Hz   SUSPENDED
3   alsa_output.pci-0000_00_1b.0.analog-stereo.monitor  module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
4   alsa_input.pci-0000_00_1b.0.analog-stereo   module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED

第 1,3,4 項output在這裡都包含一個關鍵字,為什麼它屬於source而不是sink

這些是源監視器它們是反映發送到相應接收器的任何內容的源。

例如,alsa_output.default.monitor允許您記錄發送到預設 ALSA 輸出的所有內容。

引用自:https://unix.stackexchange.com/questions/622043