* No sound in games using sdl-mixer
@ 2015-10-02 16:58 Alex Kost
2015-10-03 3:33 ` 宋文武
0 siblings, 1 reply; 10+ messages in thread
From: Alex Kost @ 2015-10-02 16:58 UTC (permalink / raw)
To: guix-devel
Hello, I have tried several games that use sdl-mixer (wesnoth, pingus,
gnujump, extremetuxracer) and I didn't get any sound from them. Does
anyone have this issue?
My audio system is OK, I can play various formats using "aplay", "mpv",
etc., I just don't have sound in those games.
It's just my guess that "sdl-mixer" is the problem, actually I'm
absolutely clueless how to debug it.
I also compiled a simple demo program¹ using our sdl-mixer package, and
the result was the same — no sound.
[1] http://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer_demos.tar.gz
--
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No sound in games using sdl-mixer
2015-10-02 16:58 No sound in games using sdl-mixer Alex Kost
@ 2015-10-03 3:33 ` 宋文武
2015-10-03 14:37 ` Alex Kost
0 siblings, 1 reply; 10+ messages in thread
From: 宋文武 @ 2015-10-03 3:33 UTC (permalink / raw)
To: Alex Kost, guix-devel
Alex Kost <alezost@gmail.com> writes:
> Hello, I have tried several games that use sdl-mixer (wesnoth, pingus,
> gnujump, extremetuxracer) and I didn't get any sound from them. Does
> anyone have this issue?
>
> My audio system is OK, I can play various formats using "aplay", "mpv",
> etc., I just don't have sound in those games.
>
> It's just my guess that "sdl-mixer" is the problem, actually I'm
> absolutely clueless how to debug it.
I have no issue with sound on GuixSD.
You can launch those games with 'SDL_AUDIODRIVER',
set to 'alsa' or 'pulse'.
Hope it helps.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No sound in games using sdl-mixer
2015-10-03 3:33 ` 宋文武
@ 2015-10-03 14:37 ` Alex Kost
2015-10-04 2:49 ` 宋文武
0 siblings, 1 reply; 10+ messages in thread
From: Alex Kost @ 2015-10-03 14:37 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel
宋文武 (2015-10-03 06:33 +0300) wrote:
> Alex Kost <alezost@gmail.com> writes:
>
>> Hello, I have tried several games that use sdl-mixer (wesnoth, pingus,
>> gnujump, extremetuxracer) and I didn't get any sound from them. Does
>> anyone have this issue?
>>
>> My audio system is OK, I can play various formats using "aplay", "mpv",
>> etc., I just don't have sound in those games.
>>
>> It's just my guess that "sdl-mixer" is the problem, actually I'm
>> absolutely clueless how to debug it.
> I have no issue with sound on GuixSD.
>
> You can launch those games with 'SDL_AUDIODRIVER',
> set to 'alsa' or 'pulse'.
>
> Hope it helps.
Wow! This is it, thank you very much!! Now I'm happy :-)
(I'm also on GuixSD) So I didn't get it: do you also use SDL_AUDIODRIVER
or does it just work for you?
If "no sound" is the default, I think we should probably do something
about it.
--
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No sound in games using sdl-mixer
2015-10-03 14:37 ` Alex Kost
@ 2015-10-04 2:49 ` 宋文武
2015-10-04 11:28 ` Alex Kost
0 siblings, 1 reply; 10+ messages in thread
From: 宋文武 @ 2015-10-04 2:49 UTC (permalink / raw)
To: Alex Kost; +Cc: guix-devel
Alex Kost <alezost@gmail.com> writes:
> 宋文武 (2015-10-03 06:33 +0300) wrote:
>
>> Alex Kost <alezost@gmail.com> writes:
>>
>>> Hello, I have tried several games that use sdl-mixer (wesnoth, pingus,
>>> gnujump, extremetuxracer) and I didn't get any sound from them. Does
>>> anyone have this issue?
>>>
>>> My audio system is OK, I can play various formats using "aplay", "mpv",
>>> etc., I just don't have sound in those games.
>>>
>>> It's just my guess that "sdl-mixer" is the problem, actually I'm
>>> absolutely clueless how to debug it.
>> I have no issue with sound on GuixSD.
>>
>> You can launch those games with 'SDL_AUDIODRIVER',
>> set to 'alsa' or 'pulse'.
>>
>> Hope it helps.
>
> Wow! This is it, thank you very much!! Now I'm happy :-)
>
> (I'm also on GuixSD) So I didn't get it: do you also use SDL_AUDIODRIVER
> or does it just work for you?
No, it just work for me.
>
> If "no sound" is the default, I think we should probably do something
> about it.
What values of 'SDL_AUDIODRIVER' work for you?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No sound in games using sdl-mixer
2015-10-04 2:49 ` 宋文武
@ 2015-10-04 11:28 ` Alex Kost
2015-10-04 12:45 ` Ludovic Courtès
0 siblings, 1 reply; 10+ messages in thread
From: Alex Kost @ 2015-10-04 11:28 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel
宋文武 (2015-10-04 05:49 +0300) wrote:
> Alex Kost <alezost@gmail.com> writes:
>
>> 宋文武 (2015-10-03 06:33 +0300) wrote:
>>
>>> Alex Kost <alezost@gmail.com> writes:
>>>
>>>> Hello, I have tried several games that use sdl-mixer (wesnoth, pingus,
>>>> gnujump, extremetuxracer) and I didn't get any sound from them. Does
>>>> anyone have this issue?
>>>>
>>>> My audio system is OK, I can play various formats using "aplay", "mpv",
>>>> etc., I just don't have sound in those games.
>>>>
>>>> It's just my guess that "sdl-mixer" is the problem, actually I'm
>>>> absolutely clueless how to debug it.
>>> I have no issue with sound on GuixSD.
>>>
>>> You can launch those games with 'SDL_AUDIODRIVER',
>>> set to 'alsa' or 'pulse'.
>>>
>>> Hope it helps.
>>
>> Wow! This is it, thank you very much!! Now I'm happy :-)
>>
>> (I'm also on GuixSD) So I didn't get it: do you also use SDL_AUDIODRIVER
>> or does it just work for you?
> No, it just work for me.
Hm, interesting.
>> If "no sound" is the default, I think we should probably do something
>> about it.
> What values of 'SDL_AUDIODRIVER' work for you?
I don't use pulseaudio, so all I did is "export SDL_AUDIODRIVER=alsa",
and the sound appeared.
--
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No sound in games using sdl-mixer
2015-10-04 11:28 ` Alex Kost
@ 2015-10-04 12:45 ` Ludovic Courtès
2015-10-04 18:46 ` Alex Kost
2015-10-04 19:46 ` Ricardo Wurmus
0 siblings, 2 replies; 10+ messages in thread
From: Ludovic Courtès @ 2015-10-04 12:45 UTC (permalink / raw)
To: Alex Kost; +Cc: guix-devel
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?
Ludo’.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No sound in games using sdl-mixer
2015-10-04 12:45 ` Ludovic Courtès
@ 2015-10-04 18:46 ` Alex Kost
2015-10-04 19:46 ` Ricardo Wurmus
1 sibling, 0 replies; 10+ messages in thread
From: Alex Kost @ 2015-10-04 18:46 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel
Ludovic Courtès (2015-10-04 15:45 +0300) wrote:
> 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:
>
>
> pcm.!default {
> type pulse
> }
>
> Should we add it to the account skeletons?
Hm, wouldn't this break a sound somehow if a user doesn't have
pulseaudio installed?
BTW, I have never had problems with simultaneous sound from different
programs with ALSA.
--
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No sound in games using sdl-mixer
2015-10-04 12:45 ` Ludovic Courtès
2015-10-04 18:46 ` Alex Kost
@ 2015-10-04 19:46 ` Ricardo Wurmus
2015-10-05 8:40 ` Alex Kost
2015-10-05 14:41 ` Ludovic Courtès
1 sibling, 2 replies; 10+ messages in thread
From: Ricardo Wurmus @ 2015-10-04 19:46 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel, Alex Kost
Ludovic Courtès <ludo@gnu.org> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No sound in games using sdl-mixer
2015-10-04 19:46 ` Ricardo Wurmus
@ 2015-10-05 8:40 ` Alex Kost
2015-10-05 14:41 ` Ludovic Courtès
1 sibling, 0 replies; 10+ messages in thread
From: Alex Kost @ 2015-10-05 8:40 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel
Ricardo Wurmus (2015-10-04 22:46 +0300) wrote:
> Ludovic Courtès <ludo@gnu.org> 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.)
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 “export SDL_AUDIODRIVER=alsa” to /etc/profile,
but then it would probably not be a pleasant default for pulseaudio
people.
BTW I also have “export AUDIODRIVER=alsa” in my ~/.bash_profile.
Without it 'play' command (from 'sox' package) also tries to use
pulseaudio.
--
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No sound in games using sdl-mixer
2015-10-04 19:46 ` Ricardo Wurmus
2015-10-05 8:40 ` Alex Kost
@ 2015-10-05 14:41 ` Ludovic Courtès
1 sibling, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2015-10-05 14:41 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel, Alex Kost
Ricardo Wurmus <rekado@elephly.net> skribis:
> Ludovic Courtès <ludo@gnu.org> 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.)
OK, makes sense (I was expecting some push back, just wanted to make
sure. ;-))
Ludo’.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-10-05 14:41 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-02 16:58 No sound in games using sdl-mixer Alex Kost
2015-10-03 3:33 ` 宋文武
2015-10-03 14:37 ` Alex Kost
2015-10-04 2:49 ` 宋文武
2015-10-04 11:28 ` Alex Kost
2015-10-04 12:45 ` Ludovic Courtès
2015-10-04 18:46 ` Alex Kost
2015-10-04 19:46 ` Ricardo Wurmus
2015-10-05 8:40 ` Alex Kost
2015-10-05 14:41 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.