ALT Linux Distributions development
 help / color / mirror / Atom feed
From: "Антон Мидюков" <midyukov-anton@ya.ru>
To: devel-distro@lists.altlinux.org
Subject: [devel-distro] Переключатель между alsa и pulseaudio
Date: Wed, 10 Jan 2018 22:45:34 +0700
Message-ID: <8a5a93e7-b738-5779-a130-52b513f03ed2@ya.ru> (raw)

[-- 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


             reply	other threads:[~2018-01-10 15:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-10 15:45 Антон Мидюков [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8a5a93e7-b738-5779-a130-52b513f03ed2@ya.ru \
    --to=midyukov-anton@ya.ru \
    --cc=devel-distro@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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