VOGONS


dosbox+alsa (dmix)

Topic actions

First post, by duke42

User metadata
Rank Newbie
Rank
Newbie

OK, I"m using gentoo and have compiled from CVS yesterday. MIDI through timidity works just fine, but: my soundcard doesn't support multiple sound-streams, so I have set up the dmix plugin to be used by every program. It works just fine for timidty+mplayer+xmms for example.

The question is: does dosbox use ALSA for pcm at all? And if it does, why can't I play sounds+midi at the same time?

bye, duke42.

Reply 1 of 6, by Harekiet

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dosbox uses SDL for pcm and what SDL uses eventually for outputting could be alsa or oss.

Reply 2 of 6, by duke42

User metadata
Rank Newbie
Rank
Newbie

oh, I see.

So, is there a possibility to pass an argument to the SDL sound driver? Like -ao sdl:esd in mplayer?

bye, duke42.

Reply 3 of 6, by k8to

User metadata

SDL is generally controlled at runtime via SDL_FOO environment variables. Your SDL could have been compiled with support for different types of sound drivers, and if it has support for more than one, you can hint as to which you sould like it to use with such environmental varaibles.

http://www.libsdl.org/faq.php?action=listentries&category=9

The SDL FAQ does not indicate a SDL_AUDIODRIVER option for alsa. The FAQ may be out of date or it may not actually support it. I certainly don't know, but look aroudn libsdl.org for more information.

Reply 4 of 6, by Diskdoc

User metadata
Rank Newbie
Rank
Newbie

I'd love to hear how this is working out for you. I use Gentoo+ALSA too and couldn't get MIDI with Timidity and sound effects working from Dosbox at the same time. Recompiling libsdl and messing with the config didn't help. It's been a few weeks since though, so I don't remember any details.

Reply 5 of 6, by Guest

User metadata

I have gentoo and alsa and dosbox seems ok here. I have master of magic playing music and digital sound effects, anyway. It's a little patchy, but ok otherwise

What'd be a good test for midi files under dosbox?

Reply 6 of 6, by Guest

User metadata

USE="-opengl -alsa -arts" emerge -av sdl-ttf sdl-net sdl-mixer sdl-image sdl-gfx libsdl sdl-perl --oneshot

That fixed it for me.
Now dosbox is running, i don't know if i have sound.