Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to play sound through two or more output devices under Linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to play sound through two or more output devices under Linux, which has a certain reference value, and interested friends can refer to it. I hope you can learn a lot after reading this article.

Dealing with audio on Linux is a very painful thing. The emergence of Pulseaudio has both advantages and disadvantages. While there are some things Pluseaudio can do better, some things get more complicated. Dealing with audio output is such a thing.

If you want to enable multiple audio outputs on Linux PC, you only need to use a simple tool to enable another sound device on a virtual j interface. It's a lot easier than it looks.

You may wonder why you do this. A very common situation is to use a computer to play video on a TV. You can use both the computer and the speakers on the TV.

Install Paprefs

The easiest way to enable audio playback from multiple sources is a simple graphical tool called "paprefs". It is the abbreviation of PulseAudio Preferences.

The software is included in the Ubuntu repository and can be installed directly with apt.

Sudo apt install paprefs

After installation, you can start this program.

Start dual audio playback

Although the tool is graphical, it's probably easier to start it as a normal user by typing paprefs on the command line.

The window that opens has tabs with settings that can be adjusted. Here we choose the label page, "Simultaneous Output."

Paprefs on Ubuntu

There is nothing in this tab, just a check box to enable this setting.

Next, open the regular sound item. This is located in different locations in different distributions. On Ubuntu, it is within the GNOME system setup.

Enable Simultaneous Audio

After opening the sound * * tab, select the output tab. Check the Simultaneous output radio button. Now it's your default output.

Test it

You can test with whatever you like, but it's always possible to play music. If you are as suggested earlier, there is no problem with testing with video.

If all goes well, you can hear a sound coming from all the connected devices.

That's all that needs to be done. This feature works best when there are multiple devices, such as HDMI ports and standard analog output. Of course, you can also try other configurations. You also need to note that there is only one volume controller, so you need to adjust the physical output device according to the actual situation.

Thank you for reading this article carefully. I hope the article "how to play sound through two or more output devices under Linux" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report