No sound with SDL applications

Hello,

I use a bluetooth headset.

With some SDL applications[1][2][3][4] I got this error :
ALSA lib audio/pcm_bluetooth.c:1607:(audioservice_expect) BT_OPEN failed : Invalid argument(22)
and audio doesn’t work.

Whereas with other applications[5][6] I got no error message and the audio works.

I think all SDL applications have this problem.
Can you tell me how to resolve this problem?

[1]supertux
[2]frozen-bubble
[3]pingus
[4]milkytracker
[5]vlc
[6]audacity

I think all SDL applications have this problem.
Can you tell me how to resolve this problem?

Try setting the environment variable SDL_AUDIODRIVER=pulse (or =alsa),
and see if that fixes it.

Despite the ALSA error message, we might be going through PulseAudio,
which then talks to ALSA for us.

(Horrifyingly, you might also be talking to ALSA, which is actually just
a wrapper for PulseAudio, which then talks to the real ALSA. Linux audio
is a mess.)

–ryan.

I have done :
$ export SDL_AUDIODRIVER=alsa

Then :
$ supertux

And I got :
ALSA lib audio/pcm_bluetooth.c:1607:(audioservice_expect) BT_OPEN failed : Invalid argument(22)

I don’t use PulseAudio, I am trying to use my headset only with ALSA and bluez.

This is my ~/.asoundrc :
pcm.!default {
type bluetooth
device 00:1E:7C:01:0A:5E
profile “auto”
}

ctl.!default {
type bluetooth
device 00:1E:7C:01:0A:5E
profile “auto”
}

I know there is a PulseAudio solution but for the moment, I just know how to make my bluetooth headset works with ALSA. I hope PulseAudio is not necessary to solve my problem…On Tue, 21 Jun 2011 00:47:02 -0400 “Ryan C. Gordon” wrote:

I think all SDL applications have this problem.
Can you tell me how to resolve this problem?

Try setting the environment variable SDL_AUDIODRIVER=pulse (or =alsa),
and see if that fixes it.

Despite the ALSA error message, we might be going through PulseAudio,
which then talks to ALSA for us.

(Horrifyingly, you might also be talking to ALSA, which is actually just
a wrapper for PulseAudio, which then talks to the real ALSA. Linux audio
is a mess.)

–ryan.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org