VOGONS


First post, by pbienst

User metadata
Rank Newbie
Rank
Newbie

Hi,

When playing Gabriel Knight 1, which uses both digitized sound output (using the Thunderboard driver) and midi output (using the general midi driver), I can get everything to work fine using either sound or either midi, but not both at the same time.

E.g., Timidity++ 2.13.2 complains with the following messages:
ALSA lib pcm_dmix.c:862:(snd_pcm_dmix_open) unable to open slave
Can't open pcm device 'default'.
Couldn't open ALSA pcm device (`s')

I'm running this kernel: 2.6.17-gentoo-r4, with built-in alsa using an intel8x0 card. I was told that dmix support was enabled by default for this kernel, so I don't have an .asoundrc file.

Is this a dosbox problem, or does the problem lie elsewhere?

Thanks!

Peter

Reply 1 of 6, by Srecko

User metadata
Rank Member
Rank
Member

dmix isn't part of kernel. It's alsa-lib plugin, sou you still need .asoundrc to configure it.

Your sound card probably doesn't handle MIDI so it is routed to software synthesizer (timidity) which tries play PCM sound, and if both dosbox sound and timidity try to open sound device at the same time, it of course doesn't work (on cards which don't do hw mixing at least).

Reply 5 of 6, by `Moe`

User metadata
Rank Oldbie
Rank
Oldbie

You are totally right, dmix is enabled by default in moderately recent ALSA versions. This has nothing to do with the kernel, it's libasound that does this (and all ALSA programs use libasound). As you can see fron the error message, dmix is indeed tried, but fails.

Reasons for this can vary, but I'd check if you are trying to run sound using programs using more than one userid (perhaps a timidity MIDI daemon as root?). That can break dmix.

Bottom line: Since SDL is already using ALSA and dmix is clearly being tried, your problem is _not_ with any environment variables. Moreover, it should work without an .asoundrc. You can try to tweak dmix config using one, however.

Reply 6 of 6, by jasonskow

User metadata
Rank Newbie
Rank
Newbie

Hi,
I have a similar problem to the one mentioned above. I can get awesome sound using mt32d (munt), but I don't get digitized sound effects. If I don't run mt32d, I get digitized sound, but no Roland music. I'm using Ubuntu 6.06, dosbox-0.65 and a cvs version of munt. The message I get when running dosbox (while mt32d is running) is:

MIXER:Can't open audio: No available audio device , running in nosound mode.
ALSA:Client initialised [128:0]
MIDI:Opened device:alsa

I've tried the to set the environmental variables, as suggested above with:

export SDL_AUDIODRIVER=alsa

However, this has not affected the MIXER error message.

Thanks in advance for any thoughts or suggestions.