VOGONS

Common searches


First post, by kaspar42

User metadata
Rank Newbie
Rank
Newbie

Hi

I just made a fresh install of Ubuntu 11.10 64, and set up DOSbox 0.74, with the following in the mixer and MIDI sections of the config file:

[mixer]
# nosound: Enable silent mode, sound is still emulated though.
# rate: Mixer sample rate, setting any device's rate higher than this will probably lower their sound quality.
# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
# blocksize: Mixer block size, larger blocks might help sound stuttering but sound will also be more lagged.
# Possible values: 1024, 2048, 4096, 8192, 512, 256.
# prebuffer: How many milliseconds of data to keep on top of the blocksize.

nosound=false
rate=44100
blocksize=1024
prebuffer=20

[midi]
# mpu401: Type of MPU-401 to emulate.
# Possible values: intelligent, uart, none.
# mididevice: Device that will receive the MIDI data from MPU-401.
# Possible values: default, win32, alsa, oss, coreaudio, coremidi, none.
# midiconfig: Special configuration options for the device driver. This is usually the id of the device you want to use.
# See the README/Manual for more details.

mpu401=intelligent
mididevice=default
midiconfig=128:0

When i run it, I get the following error:

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

I have tried searching the forums, but to no avail. Any ideas?

Reply 1 of 2, by dougdahl

User metadata
Rank Member
Rank
Member

I'm not sure how much I'll be able to help, but I'll try.
Just to get this out of the way, I'm assuming that you've got the sound, and volume control working on your system.
I don't have an Ubuntu 64 bit install, so I don't know whether dosbox is looking for 32 or 64 bit libraries, so it might not hurt to make sure that both are installed.
It might not hurt to make sure that you have libsdl_mixer and alsa-utils installed (I'm afraid I don't what the precise name of the packages would be for Ubuntu.) It wouldn't hurt to make sure that libasound2 is installed as well. (And if you built from source, you'll probably need the dev packages installed as well.)

Reply 2 of 2, by kaspar42

User metadata
Rank Newbie
Rank
Newbie

libasound2 doesn't appear to be available for Ubuntu 11.10. I tried other packages, but with no success.

Anyway, I've abandoned Ubuntu due to the awfulness of Unity, and installed Linux Mint instead. Here Dosbox's sound works almost out of the box; all it took was to set midiconfig=128:0, i.e. the midi section should be:

[midi]
# mpu401: Type of MPU-401 to emulate.
# Possible values: intelligent, uart, none.
# mididevice: Device that will receive the MIDI data from MPU-401.
# Possible values: default, win32, alsa, oss, coreaudio, coremidi, none.
# midiconfig: Special configuration options for the device driver. This is usually the id of the device you want to use.
# See the README/Manual for more details.

mpu401=intelligent
mididevice=default
midiconfig=128:0