VOGONS

Common searches


First post, by Walter Dnes

User metadata
Rank Newbie
Rank
Newbie

I have the YMF-724F onboard sound chip. Regular sound under dosbox is OK, but not midi. Here's the error message when starting dosbox...

waltdnes@m450 ~ $ dosbox
CONFIG:Loading settings from config file /home/waltdnes/.dosboxrc
MIDI:Can't find device:/dev/snd/seq, finding default handler.
ALSA:Can't subscribe to MIDI port (65:0)
MIDI:Opened device:none

I've also tried /dev/sound/sequencer, with the same response. OSS emeulation is on. The userid is a member of group "audio", which has read+write permissions to all sound devices. Any ideas?

Reply 1 of 5, by `Moe`

User metadata
Rank Oldbie
Rank
Oldbie

ALSA doesn't use /dev names for audio devices (yes, it accesses them that way, but the naming is different).

In your "config=" line in the midi setion, you should enter the port number your sequencer is located at. 65:0 is the default, I have no idea how your card's driver registers itself. Try 32:0, 64:0 or 128:0, or 65:1.

Well, there is even a command to list all available devices and their port numbers... try googling for "aconnect" or something like that, I don't remember right now, and I can't check myself (at work 😀 )

Reply 3 of 5, by Walter Dnes

User metadata
Rank Newbie
Rank
Newbie

Thanks guys. Sometimes Gentoo seems like a game of Zork or whatever. Get a hint, and eventually find the treasure. Both aconnect and pmidi showed no midi clients at all. Some googling indicated that I had to build the snd-virmidi module.

After the build and reboot, I found out after some trial and error that the correct initialisation command for my system is...
modprobe snd-virmidi index=1

aconnect and pmidi showed 4 ports 72...75. So I set ~/.dosboxrc to

device=alsa
config=72:0

and it finally works. One last question. I vaguely remember reading somewhere in the docs about needing specific libs to do a screen cpature. For the life of me, I can't find that item now, when I really want it. What libs are required (on linux)?

Reply 4 of 5, by Magamo

User metadata
Rank Member
Rank
Member

I believe libpng is required (someone do correct me if I'm wrong...), and you're likely already set to go, since I would imagine it being a dependancy for some other program you've already emerged.

Personally, when I do screen captures, I just use 'import' which is part of the imagemagick package.