Manjaro Difference between revisions of "ALSA/ru"

Difference between revisions of "ALSA/ru"

From Manjaro
(Created page with "==Обзор== Архитектура [https://www.alsa-project.org/wiki/Main_Page Advanced Linux Sound Architecture (ALSA)] обеспечивает функциональн...")
(Created page with "==Использование ALSA с приложениями, требующими PulseAudio== Использование приложений, требующих PuleAudio,...")
Line 4: Line 4:
Архитектура [https://www.alsa-project.org/wiki/Main_Page Advanced Linux Sound Architecture (ALSA)] обеспечивает функциональность аудио и MIDI в операционной системе Linux.  
Архитектура [https://www.alsa-project.org/wiki/Main_Page Advanced Linux Sound Architecture (ALSA)] обеспечивает функциональность аудио и MIDI в операционной системе Linux.  


==Use ALSA on with Applications requiring PulseAudio==
==Использование ALSA с приложениями, требующими PulseAudio==
Using applications which require PuleAudio on systems which only have ALSA installed can be accomplished through the use of '''apulse''' which is a pulse emulator for ALSA.
Использование приложений, требующих PuleAudio, на системах, где установлен только ALSA, может быть достигнуто с помощью '''apulse''', являющийся эмулятором импульсов для ALSA.


===Install apulse===
===Install apulse===

Revision as of 17:33, 21 December 2022

Other languages:
English • ‎Türkçe • ‎русский • ‎فارسی

Обзор

Архитектура Advanced Linux Sound Architecture (ALSA) обеспечивает функциональность аудио и MIDI в операционной системе Linux.

Использование ALSA с приложениями, требующими PulseAudio

Использование приложений, требующих PuleAudio, на системах, где установлен только ALSA, может быть достигнуто с помощью apulse, являющийся эмулятором импульсов для ALSA.

Install apulse

Install apulse from the AUR using a your preferred package manager or the command:

user $ pamac build apulse COPY TO CLIPBOARD


It is built from source so it may take some time to install. Once it is done, create a basic config file using the command:

user $ cp /usr/share/apulse/asoundrc.sample ~/.asoundrc COPY TO CLIPBOARD


Using apulse

Using apulse is a simple typing apulse <program> in a terminal. For example:

user $ apulse /usr/lib/firefox/firefox COPY TO CLIPBOARD


If all is working, you should now have sound in Firefox without needing pulseaudio

Selecting the Primary Audio Device

If your system keeps on using the wrong device (HDMI instead of PCH or vica versa for example), you can force ALSA to use the correct device. Start by getting a list of your audio devices with the command:

user $ cat /proc/asound/cards COPY TO CLIPBOARD


Note the number of the sound device that you want to make the primary. Then using a text editor, put the following into /etc/asound.conf (You may need to create /etc/asound.conf if it doesn't already exist).

user $ sudo nano /etc/asound.conf COPY TO CLIPBOARD


/etc/asound.conf
defaults.pcm.card 1
defaults.ctl.card 1

Replace 1 in the above example with the number you noted down above.

See also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.