ALT Linux Distributions development
 help / color / mirror / Atom feed
* [devel-distro] Переключатель между alsa и pulseaudio
@ 2018-01-10 15:45 Антон Мидюков
  2018-01-10 16:37 ` Michael Shigorin
  0 siblings, 1 reply; 6+ messages in thread
From: Антон Мидюков @ 2018-01-10 15:45 UTC (permalink / raw)
  To: devel-distro

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

Предлагаю сделать вот такой переключатель между alsa и pulseaudio 
(смотреть приложенный патч). Сделал по аналогии с переключателем браузера.

-- 
С уважением, Антон Мидюков <antohami@altlinux.org>


[-- Attachment #2: 0001-Added-a-switch-between-alsa-and-pulseaudio.patch --]
[-- Type: text/x-patch, Size: 1320 bytes --]

>From cd186de51026af6bd71315854dc61606fd36df3b Mon Sep 17 00:00:00 2001
From: Anton Midyukov <antohami@altlinux.org>
Date: Wed, 10 Jan 2018 22:37:34 +0700
Subject: [PATCH] Added a switch between alsa and pulseaudio

---
 features.in/sound/config.mk | 6 +++---
 pkg.in/lists/sound/alsa     | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)
 create mode 100644 pkg.in/lists/sound/alsa

diff --git a/features.in/sound/config.mk b/features.in/sound/config.mk
index 5761963..96f191c 100644
--- a/features.in/sound/config.mk
+++ b/features.in/sound/config.mk
@@ -6,12 +6,12 @@ use/sound:
 	@$(call add_feature)
 	@$(call add,THE_KMODULES,alsa sound)
 	@$(call add,THE_LISTS,sound/base)
+	@$(call add,THE_LISTS,$$(THE_SOUND))
 
 # ALSA only sound (additional utils needed if using pulseaudio)
 use/sound/alsa: use/sound
-	@$(call add,THE_PACKAGES,apulse)
-	@$(call add,THE_PACKAGES,udev-alsa)
+	@$(call set,THE_SOUND,sound/alsa)
 
 # PulseAudio (useful for per-app levels, dynamic devices and networked sound)
 use/sound/pulse: use/sound
-	@$(call add,THE_LISTS,sound/pulseaudio)
+	@$(call set,THE_SOUND,sound/pulseaudio)
diff --git a/pkg.in/lists/sound/alsa b/pkg.in/lists/sound/alsa
new file mode 100644
index 0000000..dc3226f
--- /dev/null
+++ b/pkg.in/lists/sound/alsa
@@ -0,0 +1,2 @@
+apulse
+udev-alsa
-- 
2.10.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-01-16 12:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-10 15:45 [devel-distro] Переключатель между alsa и pulseaudio Антон Мидюков
2018-01-10 16:37 ` Michael Shigorin
2018-01-13  9:56   ` Антон Мидюков
2018-01-16 12:01     ` Michael Shigorin
2018-01-16 12:17       ` Антон Мидюков
2018-01-16 12:34         ` Michael Shigorin

ALT Linux Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-distro


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git