ALSA

Revision as of 22:47, 16 April 2024 by Orcun (talk | contribs) (Created page with "==Birincil Ses Cihazını Seçme== Sisteminiz yanlış cihazı kullanmaya devam ederse (örneğin PCH yerine HDMI veya tam tersi), ALSA'yı doğru cihazı kullanmaya zorlayabi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
English • ‎Türkçe • ‎русский • ‎فارسی

Overview

The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI functionality to the Linux operating system.

Use ALSA on with Applications requiring 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.

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

Birincil Ses Cihazını Seçme

Sisteminiz yanlış cihazı kullanmaya devam ederse (örneğin PCH yerine HDMI veya tam tersi), ALSA'yı doğru cihazı kullanmaya zorlayabilirsiniz. Aşağıdaki komutla ses cihazlarınızın bir listesini alarak başlayın:

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