From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: No sound in games using sdl-mixer Date: Sun, 04 Oct 2015 21:46:57 +0200 Message-ID: <87k2r2s9fy.fsf@elephly.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZipFX-0004da-OB for guix-devel@gnu.org; Sun, 04 Oct 2015 15:47:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZipFW-0006SF-QT for guix-devel@gnu.org; Sun, 04 Oct 2015 15:47:11 -0400 In-reply-to: <871tda7qfp.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, Alex Kost Ludovic Courtès 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’s 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’t think that’s a good idea. This means that the ALSA library will always try to output to the “pulse” backend, which may not exist. For example, I do not use PulseAudio, so I do not have the “pulse” backend, so this ~/.asoundrc setting would not work in my case. (I don’t know if it would do harm, to be fair.) 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. ~~ Ricardo