Bem, isso pode não ser perfeito, mas é um bom protótipo de shell usando pactl
para monitoramento.
Aqui, uma parte da saída quando uma chamada está em execução:
pactl list source-outputs
Source Output #2
Driver: protocol-native.c
Owner Module: 8
Client: 11
Source: 2
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "2" format.channel_map = "\"front-left,front-right\""
Corked: no
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Buffer Latency: 0 usec
Source Latency: 66 usec
Resample method: n/a
Properties:
application.icon_name = "chromium-browser"
media.name = "RecordStream"
application.name = "Chrome input"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "30"
application.process.id = "17053"
application.process.user = "sneetsher"
application.process.host = "sneetsher-blueskies"
application.process.binary = "skypeforlinux"
window.x11.display = ":0.0"
application.language = "en_US.UTF-8"
application.process.machine_id = "00074bc0a72a47d49284ce5b9bcda899"
application.process.session_id = "c4"
module-stream-restore.id = "source-output-by-application-name:Chrome input"
pactl list sink-inputs
Sink Input #166
Driver: protocol-native.c
Owner Module: 8
Client: 16
Sink: 1
Sample Specification: float32le 2ch 44100Hz
Channel Map: front-left,front-right
Format: pcm, format.sample_format = "\"float32le\"" format.rate = "44100" format.channels = "2" format.channel_map = "\"front-left,front-right\""
Corked: no
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Buffer Latency: 51519 usec
Sink Latency: 11124 usec
Resample method: copy
Properties:
application.icon_name = "chromium-browser"
media.name = "Playback"
application.name = "Skype for Linux Beta"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "30"
application.process.id = "17053"
application.process.user = "sneetsher"
application.process.host = "sneetsher-blueskies"
application.process.binary = "skypeforlinux"
window.x11.display = ":0.0"
application.language = "en_US.UTF-8"
application.process.machine_id = "00074bc0a72a47d49284ce5b9bcda899"
application.process.session_id = "c4"
module-stream-restore.id = "sink-input-by-application-name:Skype for Linux Beta"
Sink Input #167
Driver: protocol-native.c
Owner Module: 8
Client: 17
Sink: 1
Sample Specification: float32le 2ch 44100Hz
Channel Map: front-left,front-right
Format: pcm, format.sample_format = "\"float32le\"" format.rate = "44100" format.channels = "2" format.channel_map = "\"front-left,front-right\""
Corked: no
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Buffer Latency: 28480 usec
Sink Latency: 11061 usec
Resample method: copy
Properties:
application.icon_name = "chromium-browser"
media.name = "Playback"
application.name = "Skype for Linux Beta"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "30"
application.process.id = "17053"
application.process.user = "sneetsher"
application.process.host = "sneetsher-blueskies"
application.process.binary = "skypeforlinux"
window.x11.display = ":0.0"
application.language = "en_US.UTF-8"
application.process.machine_id = "00074bc0a72a47d49284ce5b9bcda899"
application.process.session_id = "c4"
module-stream-restore.id = "sink-input-by-application-name:Skype for Linux Beta"