사운드 카드가 내장된 헤드폰을 통해 텔레그램의 사운드를 재생하려고 합니다.
다음은 오디오 출력 채널을 생성하는 프로그램 목록입니다.
$ pactl list sink-inputs
Sink Input #4
Driver: protocol-native.c
Owner Module: 12
Client: 19
Sink: 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: 42604 / 65% / -11,22 dB, front-right: 42604 / 65% / -11,22 dB
balance 0,00
Buffer Latency: 30725 usec
Sink Latency: 38824 usec
Resample method: n/a
Properties:
application.icon_name = "google-chrome"
media.name = "Playback"
application.name = "Chrome"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "30"
application.process.id = "3991"
application.process.user = "pastafarianist"
application.process.host = "DesktopPC"
application.process.binary = "chrome"
window.x11.display = ":0"
application.language = "es_ES.UTF-8"
application.process.machine_id = <long ID>
module-stream-restore.id = "sink-input-by-application-name:Chrome"
Sink Input #8
Driver: protocol-native.c
Owner Module: 12
Client: 29
Sink: 1
Sample Specification: float32le 2ch 44100Hz
Channel Map: front-left,front-right
Format: pcm, format.sample_format = "\"float32le\"" format.channels = "2" format.channel_map = "\"front-left,front-right\""
Corked: yes
Mute: no
Volume: front-left: 36052 / 55% / -15,57 dB, front-right: 36052 / 55% / -15,57 dB
balance 0,00
Buffer Latency: 69659 usec
Sink Latency: 18820 usec
Resample method: copy
Properties:
media.role = hex:
phonon.streamid = hex:
media.name = "Playback Stream"
application.name = "Telegram"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "30"
application.process.id = "7257"
application.process.user = "pastafarianist"
application.process.host = "DesktopPC"
application.process.binary = "Telegram"
application.language = "es_ES.UTF-8"
window.x11.display = ":0"
application.process.machine_id = <long ID>
module-stream-restore.id = "sink-input-by-application-name:Telegram"
에 따르면 man pactl
,
move-sink-input ID SINK
Move the specified playback stream
(identified by its numerical index)
to the specified sink (identified
by its symbolic name or numerical index).
그런데 텔레그램 채널을 옮기려고 하면,
$ pactl move-sink-input 8 2
Failure: Invalid argument
모바일 크롬이 작동합니다.
$ pactl move-sink-input 4 1
오류가 생성되지 않습니다.
텔레그램은 크롬과 어떻게 다른가요?
답변1
이는 Telegram이 오디오 스트림을 DONT_MOVE로 지정하기 때문입니다. flags
출력의 필드에서 확인할 수 있습니다 .pacmd list-sink-inputs