3

I'm trying to play sound from Telegram through my headphones, which have an internal audio card.

Here is the list of programs which produce audio output channels:

$ 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"

According to 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).

But when I try to move Telegram's channel,

$ pactl move-sink-input 8 2
Failure: Invalid argument

Moving Chrome works.

$ pactl move-sink-input 4 1

produces no errors.

How is Telegram different from Chrome?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.