From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDbVO-0004Q5-4Z for guix-patches@gnu.org; Tue, 01 May 2018 16:04:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDbVK-0002vy-VG for guix-patches@gnu.org; Tue, 01 May 2018 16:04:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38178) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDbVK-0002vo-Rh for guix-patches@gnu.org; Tue, 01 May 2018 16:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fDbVK-0003iK-GT for guix-patches@gnu.org; Tue, 01 May 2018 16:04:02 -0400 Subject: [bug#31297] [PATCH] gnu: Add sound service. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20180428103341.30675-1-go.wigust@gmail.com> <87muxkv2gs.fsf@gnu.org> <87tvrrsoj0.fsf@gmail.com> Date: Tue, 01 May 2018 22:03:52 +0200 In-Reply-To: <87tvrrsoj0.fsf@gmail.com> (Oleg Pykhalov's message of "Tue, 01 May 2018 12:39:31 +0300") Message-ID: <87a7tjqh1z.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Oleg Pykhalov Cc: 31297@debbugs.gnu.org Hello Oleg, Oleg Pykhalov skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Oleg Pykhalov skribis: >> >>> * gnu/services/sound.scm: New file. >>> * gnu/local.mk (GNU_SYSTEM_MODULES): Add this. >>> * doc/guix.texi (Sound Services): New chapter. >> >> [...] >> >>> +@node Sound Services >>> +@subsubsection Sound Services >>> + >>> +The @code{(gnu services alsa)} module provides an >>> +@code{alsa-service-type} service to generate an ALSA >>> +@file{/etc/asound.conf} configuration file. >> >> Is this file required to get PulseAudio support? I realize I have >> ~/.asoundrc that=E2=80=99s similar to what this new service does, so it = may be >> that I simply forgot that things wouldn=E2=80=99t work well without it. > > In case of existing =E2=80=98~/.asoundrc=E2=80=99 it's not required. But= I spent some > time to find a =E2=80=98asoundrc=E2=80=99 config and be glad if it was in= a Guix manual. Right, I agree. > From 460fa678823a7cf3d2869a3e4beafb22e5a313fa Mon Sep 17 00:00:00 2001 > From: Oleg Pykhalov > Date: Sat, 28 Apr 2018 13:30:20 +0300 > Subject: [PATCH] gnu: Add sound service. > > * gnu/services/sound.scm: New file. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add this. > * doc/guix.texi (Sound Services): New chapter. [...] > +@node Sound Services > +@subsubsection Sound Services > + Maybe add =E2=80=9C@cindex sound support=E2=80=9D, =E2=80=9C@cindex ALSA=E2= =80=9D, and =E2=80=9C@cindex PulseAudio, sound support=E2=80=9D. > +The @code{(gnu services alsa)} module provides an ^^ =E2=80=9Csound=E2=80=9D > +@code{alsa-service-type} service to generate an ALSA > +@file{/etc/asound.conf} configuration file. Perhaps add a sentence like: =E2=80=9CThis configuration file is what allows applications that produce sound using ALSA to be correctly handled.=E2=80=9D > +@deftp {Data Type} alsa-configuration > +Data type representing the configuration for @code{alsa-service}. > + > +@table @asis > +@item @code{pulseaudio?} (default: @var{#t}) > +Whether to use Pulseaudio by configuring ALSA to use PulseAudio. =E2=80=9CWhether ALSA applications should transparently be made to use the @uref{http://www.pulseaudio.org/, PulseAudio} sound server. Using PulseAudio allows you to run several sound-producing applications at the same time and to individual control them @i{via} @command{pavucontrol}, among other things.=E2=80=9D > +@item @code{extra-options} (default: @var{#f}) default: @code{""} > +Extra options is a string which will be appended to asound.conf file. Just: =E2=80=9CString to append to the @file{asound.conf} file.=E2=80=9D Apologies for not catching those earlier! You can push with changes along these lines. Thank you! Ludo=E2=80=99.