From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: No sound in games using sdl-mixer Date: Mon, 05 Oct 2015 11:40:17 +0300 Message-ID: <87pp0tn1xq.fsf@gmail.com> References: <87d1wxxl5x.fsf@gmail.com> <87vbao4oep.fsf@member.fsf.org> <87vbao9fws.fsf@gmail.com> <871tdbwdot.fsf@member.fsf.org> <87lhbian53.fsf@gmail.com> <871tda7qfp.fsf@gnu.org> <87k2r2s9fy.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj1Jo-0002K2-Fi for guix-devel@gnu.org; Mon, 05 Oct 2015 04:40:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj1Jk-0002PT-Ci for guix-devel@gnu.org; Mon, 05 Oct 2015 04:40:24 -0400 Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]:35909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj1Jk-0002NN-5N for guix-devel@gnu.org; Mon, 05 Oct 2015 04:40:20 -0400 Received: by lbcao8 with SMTP id ao8so53767937lbc.3 for ; Mon, 05 Oct 2015 01:40:19 -0700 (PDT) In-Reply-To: <87k2r2s9fy.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 04 Oct 2015 21:46:57 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ricardo Wurmus Cc: guix-devel@gnu.org Ricardo Wurmus (2015-10-04 22:46 +0300) wrote: > Ludovic Court=C3=A8s writes: > >> FWIW I just tried ExtremeTuxRacer and it works out of the box for me (on >> GuixSD). >> >> I do use PulseAudio though. To allow ETR=E2=80=99s sound output to mix = with >> other things that may be playing sound already, I have this in my >> ~/.asoundrc: >> >> --8<---------------cut here---------------start------------->8--- >> pcm.!default { >> type pulse >> } >> --8<---------------cut here---------------end--------------->8--- >> >> Should we add it to the account skeletons? > > I don=E2=80=99t think that=E2=80=99s a good idea. This means that the AL= SA library will > always try to output to the =E2=80=9Cpulse=E2=80=9D backend, which may no= t exist. For > example, I do not use PulseAudio, so I do not have the =E2=80=9Cpulse=E2= =80=9D backend, > so this ~/.asoundrc setting would not work in my case. (I don=E2=80=99t = know if > it would do harm, to be fair.) Oh, hey! We both use dvorak and don't use PulseAudio! :-) > Is there a better way to make sdl-mixer output to the ALSA backend by > default? I think outputing to ALSA is a safe default choice, as most > applications do not directly output to PulseAudio but to ALSA. So you also don't have a sound from sdl-mixer programs (games), right? Perhaps we can just add =E2=80=9Cexport SDL_AUDIODRIVER=3Dalsa=E2=80=9D to = /etc/profile, but then it would probably not be a pleasant default for pulseaudio people. BTW I also have =E2=80=9Cexport AUDIODRIVER=3Dalsa=E2=80=9D in my ~/.bash_p= rofile. Without it 'play' command (from 'sox' package) also tries to use pulseaudio. --=20 Alex