VOGONS


First post, by Varka

User metadata
Rank Newbie
Rank
Newbie

libmt32emu is version 0.1.3
mt32emu-alsadrv is CVS from 3/25/2010

You'll still need to backup your MT-32 ROM to disk to use with the emulator.

Board wouldn't let me attach DEB files, so I tar/gzip'd them.

Unzip, install libmt32emu and mt32emu, and run "mt32d" or "xmt32" to launch the midi daemon.

You will see a line like this in console output:

brikeener@ubuntu:~/source/mt32emu-0.1.3$ mt32d
MT-32 emulator ALSA address is 128:0

Configure DOSBOX to use 128:0 (or whatever it shows) and you should be good to go.

For some odd reason, you'll have to run as "root" user if you don't have pulseaudio installed. I'll see if I can figure out what's up with that.

Attachments

Reply 1 of 13, by HunterZ

User metadata
Rank l33t++
Rank
l33t++
Varka wrote:

For some odd reason, you'll have to run as "root" user if you don't have pulseaudio installed. I'll see if I can figure out what's up with that.

Is your user account in the "audio" user group?

Reply 3 of 13, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

I read about uninstalling Pulse but haven't had the guts to try. It annoys me though because Wine doesn't play very nice with it. There's a patch for Wine that makes it use Pulse directly as an output, but they won't incorporate it officially into Wine because they're planning to replace the whole Wine audio system with OpenAL at some point...

Reply 4 of 13, by Varka

User metadata
Rank Newbie
Rank
Newbie

I've never had anything but problems with pulseaudio.

What pisses me off is that Gnome/etc. dumped their support for alsa mixers as far as I can tell. Once you uninstall pulseaudio you lose all your mixer functionality.

Just annoys me!!!

Reply 7 of 13, by Arlo

User metadata
Rank Newbie
Rank
Newbie

I've been trying to follow this technique to get MT-32 support to work on DOSBox on a 64-bit Ubuntu system, and it's giving me errors.

When I run mt32d, it says

MT-32 emulator ALSA address is 129:0
Buffer resize: Requested 40 msec got 40 msec / 14 periods
Set thread priority to -20
Starting MT-32 core
Set thread priority to -20
Loading Control ROM
Loading PCM ROM
Initialising Timbre Bank A
Initialising Timbre Bank B
Initialising Timbre Bank R
Initialising Timbre Bank M
Initialising PCM List
Initialising Rhythm Temp
Initialising Patches
Initialising System
Master Tune: 441.990082
Reverb: mode=0, time=5, level=3
Partial reserve: 1=03 2=10 3=06 4=04 5=03 6=00 7=00 8=00 Rhythm=06
Part assign: 1=01 2=02 3=03 4=04 5=05 6=06 7=07 8=08 Rhythm=09
Master volume: 100
Initialising Pitch Tables
Unable to open waveformcache-44100-441.99.raw for reading
Initialising note C -1
Initialising note C#-1
Initialising note D -1
Initialising note D#-1
Initialising note E -1
Initialising note F -1
Initialising note F#-1
Initialising note G -1
Initialising note G#-1
Initialising note A -1
Initialising note A#-1
Initialising note B -1
Initialising note C 0
Initialising note C#0
Initialising note D 0
Initialising note D#0
Initialising note E 0
Initialising note F 0
Initialising note F#0
Initialising note G 0
Initialising note G#0
Initialising note A 0
Initialising note A#0
Initialising note B 0
Initialising note C 1
Initialising note C#1
Initialising note D 1
Initialising note D#1
Initialising note E 1
Initialising note F 1
Initialising note F#1
Initialising note G 1
Initialising note G#1
Initialising note A 1
Initialising note A#1
Initialising note B 1
Initialising note C 2
Initialising note C#2
Show last 81 lines
Initialising note D 2
Initialising note D#2
Initialising note E 2
Initialising note F 2
Initialising note F#2
Initialising note G 2
Initialising note G#2
Initialising note A 2
Initialising note A#2
Initialising note B 2
Initialising note C 3
Initialising note C#3
Initialising note D 3
Initialising note D#3
Initialising note E 3
Initialising note F 3
Initialising note F#3
Initialising note G 3
Initialising note G#3
Initialising note A 3
Initialising note A#3
Initialising note B 3
Initialising note C 4
Initialising note C#4
Initialising note D 4
Initialising note D#4
Initialising note E 4
Initialising note F 4
Initialising note F#4
Initialising note G 4
Initialising note G#4
Initialising note A 4
Initialising note A#4
Initialising note B 4
Initialising note C 5
Initialising note C#5
Initialising note D 5
Initialising note D#5
Initialising note E 5
Initialising note F 5
Initialising note F#5
Initialising note G 5
Initialising note G#5
Initialising note A 5
Initialising note A#5
Initialising note B 5
Initialising note C 6
Initialising note C#6
Initialising note D 6
Initialising note D#6
Initialising note E 6
Initialising note F 6
Initialising note F#6
Initialising note G 6
Initialising note G#6
Initialising note A 6
Initialising note A#6
Initialising note B 6
Initialising note C 7
Initialising note C#7
Initialising note D 7
Initialising note D#7
Initialising note E 7
Initialising note F 7
Initialising note F#7
Initialising note G 7
Initialising note G#7
Initialising note A 7
Initialising note A#7
Initialising note B 7
Initialising note C 8
Initialising note C#8
Initialising note D 8
Initialising note D#8
Initialising note E 8
Initialising note F 8
Initialising note F#8
Initialising note G 8
*** Initialisation complete ***
MT-32 emulator ready

Then when I run DOSBox:

DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file /home/arlo/.dosbox/dosbox-0.74.conf
MIXER:Got different values from SDL: freq 44100, blocksize 512
ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)
MIDI:Opened device:none

And there's no sound when I try to play the game. (I did make sure to change the config= line in dosbox-0.74.conf to 129:0 and not 128:0). Any ideas?

Reply 9 of 13, by Arlo

User metadata
Rank Newbie
Rank
Newbie

Thanks for the reply.

Is there any reason why it why it wouldn't be reading the changes? I'm fairly certain it's reading the config file. I've tried changing fullscreen to true, and it loads in full screen when I open it. I've also made sure there are no other lines for "mpu401=" intelligent= device= config= mididevice= or midiconfig=. And I don't have any other .config files that would be loaded. I even moved my backup copy to a different directory just to be safe.

Reply 10 of 13, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

the correct lines are

[midi]
midiconfig=129:0

don't omit the [midi] part and be sure to edit the right configfile

Water flows down the stream
How to ask questions the smart way!

Reply 11 of 13, by Arlo

User metadata
Rank Newbie
Rank
Newbie

That's what I have. This is my [midi] section:

[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=uart
intelligent=true
device=default
config=129:0
mididevice=default
midiconfig=

EDIT: I just realized it said config=129:0 and not midiconfig=129:0. I changed it to midiconfig, but it still doesn't work.

Reply 12 of 13, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

remove all settings below the [midi]
and only put that midiconfig=129:0 there.

Water flows down the stream
How to ask questions the smart way!