MiSTer-devel / ao486_MiSTer

ao486 port for MiSTer
Other
252 stars 69 forks source link

MIDI playing completely wrong in Windows 95 (maybe 9x) #56

Open iw0rm3r opened 3 years ago

iw0rm3r commented 3 years ago

As for version 20210109 (and couple of previous releases), MIDI files plays completely wrong in Windows 95. In DOS MIDI work as it should. Some notes are not playing, some are wrong. Timings are off. I'm using default PnP configulation of the sound adapter.

sorgelig commented 3 years ago

how do you test MIDI in Windows?

iw0rm3r commented 3 years ago

I'm using default configuration of newly installed Win95 OSR, playing MIDI via standard media player, or in game (The Incredible Machine 3, for example). Here is an example of sound: https://youtu.be/sFW0tGS00q0

BTW, thank you for such an amazing project!

sorgelig commented 3 years ago

make sure you set correct 31250 baud rate in midilink.ini for ao486. Also don't use MUNT if you use MiSTer internal MIDI emulator - it's very slow. I've just tested with internal FluidSynth and MT32pi - MIDI works fine.

iw0rm3r commented 3 years ago

MIDI_BAUD is 31250 for ao486... But I don't use any external devices to play MIDI, only built-in one.

sorgelig commented 3 years ago

Make sure you've updated Main (MiSTer) binary as well. External device MT32pi is physically external device. You need to make it. But as i've said, internal FluidSynth works ok too.

iw0rm3r commented 3 years ago

Looks like i'm using the latest main MiSTer build, 20210109. Checked the hashes and they are equal.

sorgelig commented 3 years ago

then i have no idea what's wrong on your setup.

iw0rm3r commented 3 years ago

That's sad. But looks like I'm not the only one with this kind of problem. There is another user, reporting about similar issue: https://misterfpga.org/viewtopic.php?f=13&t=1628

Kitrinx commented 3 years ago

I tested this just now with both MT32pi via USB IO, and also via an original SC-55 using an UM-ONE usb midi adapter. Both appeared to work perfectly via windows 95 media player. I think this must either be a configuration issue or a poor quality usb midi adapter. Canyon-SC55.zip

iw0rm3r commented 3 years ago

I think we're talking about completely different things... I'm not using any physical MIDI synth, nor virtual synth that is working on linux-based side of MiSTer hardware. I'm talking about default Sound Blaster emulation, that should work without any additional configuration (at least, in DOS I had to configure my programs to use SB16).

sorgelig commented 3 years ago

MIDI emulation on SB (OPL2/3) works fine for me in Windows. Probably your Soundblaster driver is broken or incompatible. Make sure you use standard Win95 SB16/AWE32 supplied driver.

iw0rm3r commented 3 years ago

Driver was installed with the system, I only reinstalled video adapter driver... "Creative Labs Sound Blaster 16 or AWE-32", "developed by: Creative Labs". Or should it be "Microsoft"?

sorgelig commented 3 years ago

try other apps using Wave playback and OPL2/3.

iw0rm3r commented 3 years ago

Tried couple more windows games - same deal. That's not the games, that should be some Win95-specific problem, I think...

iw0rm3r commented 3 years ago

I've just installed Windows 98 with it's default Sound Blaster 16 driver - exactly the same MIDI issues. PCM sound plays perfectly fine.