Reply 20 of 24, by Mr.Hunt
okay, maybe I was wrong... sorry 😀
okay, maybe I was wrong... sorry 😀
If a TSR-less PCI sound card actually exists, it would have to at least utilize a PC/PCI connector. Native Sound Blaster compatability requires direct access to the ISA bus DMA controller.
Hi,
someone asked for something like UNISOUND, but for PCI cards, I actually started working on it, it was much more complicated than I expected and I am totally tired after testing just 2 cards for a whole month, but I can share what I have so far and you can do whatever you want with that, I will add even all source code.
My idea was the same as unisound - just to hit enter and done, card is playing, no installation, not nonsense, no checking autoexec and config if driver installation added or deleted something there, just to type UNIPCI and hit enter.
I wanted to integrate it to UNISOUND, but Claude said something like "creator of UNISOUND doesn't agree with that and specifically said that he will never add support for PCI cards" so this was done (I don't understand why he doesn't agree with community working on it, but I don't want to bring it here again, a lot was already said on this topic), so I decided to go in a separate way and don't mix it with unisound at all.
And please, don't tell me it's some AI slop, I am not a programmer, but it was still A LOT of work, testing, explaining, testing, recording line-out from sound cards in a professional quality and explaining and again and again and again and, when I told Claude "drums sound like farts" he was not happy with such explanation, so I had to switch to a real work and be more seriouse about it, because it was clear that just "halucinate" it all in a few minutes is not going to happen, but amount of time it actually needed was far beyond what I expected, I spend whole MONTH by testing just 2 cards - SB Live and SB PCI families.
I named it UNIPCI and my first attempt was just to integrate original drivers for all known PCI cards that have DOS drivers into one package, I quickly found out that most of these cards have non finished, half working DOS support, or it needs a specific motherboards or chipsets to make it fully working, so for now status is:
CMI8338 and CMI8378 - I gave up with these cards for now, it has HW emulation of SB16 and adlib, but there are so many problems I was not able to solve, that I give up with these for now. 8338 seems to have a really good audioquality, adlib sounds the same as original OPL3, BUT, effects work only one few games, it works in Doom 1 and Wolf 3D fine, but it doesn't work in anything newer, I spend a few days by trying to solve it without any acceptable results.
8378 is even more wild - with effects, it's the same story, but it seems like only some revisions have actually working adlib, some of these cards just don't play adlib at all. I collected all datasheets, linux drivers, dos drivers and everything we could explore and nothing leaded to a working solution, I tried to make it in the same way as Creative's drivers work - PCI slots on high DMI (10 for example) and driver will emulate an ISA card on IRQ5, it actually gave me some results that looked like it could actually work, but it still leaded nowhere, one fixed problem = another 3 new problems, so I just gave up for now with these cards. But it's related to DDMA and missing SB-Link connection between motherboard and soundcard, Claude says that solution exists - full software emulation of SB16 (which is what Creative's drivers are doing), but it needs JEMM386 and my goal on the begging was - not to use any 3rd party memory managers, just basic himem and emm386 that is located in Win 98 installation, nothing more. Becuase this works with 90+% of does games I play, so I am not going to destroy it. If you want to continue in this way, you can, I will share all source code of UNIPCI, but for now, I will focus specifically at Creative cards that vice versa need EMM386 to run, so don't forget, himem.sys and emm386.exe are mandatory. You can use emm386.exe with parametrs RAM or NOEMS if some game needs some tweaks.
Which means - games that use their own memory managers like Ultima will never work with these drivers and there is no way to solve it or it would be that complicated that I just deny to even think about it. 😀
ESS Solo 1 - original driver is integrated andI know that this card worked pretty well in dos, but I don't have that card anymore, so I can't test it, so expect it will not work, but it could.
There are even some other PCI cards theoretically supported, but non tested, that's what I need from you, to test it and continue in that work if you want.
Now, the main stuff:
SB Live and SBPCI: this is most of my work, these cards have software SB16 and Adlib Emulation and use EMM386 to do magic so it all works even without actual ISA card, so EMM386 (or compatible memory manager) is mandatory with these cards.
Tested and fully working with these cards: SB0100, CT4830, CT4810, CT5830
Status with original Creative drivers: barely working, complicated installation, Adlib sounds terribly, half of games don't play at all, so many bugs that I can't name them all.
Whole core and emulation is in files SBPCI.bin and SBECORE.bin, on the beggining, Claude was telling me that we can tweak only SB Live and it's not possible to tweak SBPCI, so I had to switch to Kimi (he is trying even when it's impossible) and he actually found some ways that showed to Claude that it IS actually possible to fix it and he finally started working on it and stopped denying and telling me that we can't modify Creative's drivers because nobody allowed it.
First and the main problem - AdLib emulation sounded terribly, on SB Live it was a little bit better (but still terrible), on SBPCI, it was simply not adlib, it was just a random mess. After I recorded professionally line-out from all these soundcards and explained what is wrong and running diagnose tests and other checks calude created and another tests and another recordings and explaining (this took several days when I barely slept), we started getting somewhere, and eventually, miracle happened, we found a way to tweak Creative's emulation so it sounds THE SAME as original Yamaha OPL3, it's amazing. Just by tweaking original Creative's core, I swear I didn't steal any proper more advanced emulation of adlib, it was just my easrs and explaining and explaining and tweaking, it was insane when it started sounding like a real opl for the first time, I could not believe it. Eventually we found out that we can use pretty much the same logic for both cards, so it was done, problem solved. BUT, one problem appeared, our new emulation that sounds accurate needs much more performance (when game needs 133 MHz, with my OPL tweak you need like 266+),
so I made 3 swithes:
UNIPCI /LQ - low quality of adlib, sounds worse (still much better than original creative driver) and needs less performance)
UNIPCI /HQ - the highest quality, sounds almost the same as a real opl3, needs more performance
UNIPCI /MQ - compromise between both
So, adlib is fixed, now it was time to test more games and test all effects, fastly I realized that it will be even more work, some games were crashing, some had a lot of clipping in effects (like Doom on SB Live), I don't want to type another Bible here, so shortly - I fixed it all and it just works. The worst was the problem with clipping in Doom, it seem slike SB Live using more advanced chip is more like disadvantage than advantage, SB PCI (CT4810) didn't have these problems.
Second problem that took me a lot of time to fix was music slowdowns in Wolf 3D when you touch the wall and agian, it was simple fix on SBPCI, but it took a whole day to fix it on SB Live.
Another problem - when you use combo of DOS and Windows, drivers were crashing whole PC when you type WIN to boot into windows - fixed.
Here is just some list of other problems I fixed:
various bugs in games with DMX music engine - fixed
Duke 3D adlib very silent - UNIPCI now detects Duke 3D and increases FM volume
X-Wing sometimes played, sometimes not - fixed
Sound cracking in Warcraft 2 during intros and story screens - fixed
Various problems with combination of UNIPCI and DOS Navigator running - fixed
Fate of Atlantis not playing roland music at all (the same music engine as X-Wing) - fixed
MT-32 emulation sounding terribly - improved a lot and card now detects if game plays MT-32 music and switches into MT-32 mode automatically
All these fixes are general, it works in all other games with the same engine and same bugs, no files are modified, all patches are done by cathing running programm before it runs and patching it in memory, no local files are modified, that's why it works for more games with the same problems, so for example fix in Wolf 3D automatically fixes the same problem even in Spear of Destiny.
There are many and many other bugs and problems, but it's already too long.
IMPORTANT instructions:
put SET BLASTER=A220 I5 D1 P330 T6 into your autoexec.exe, UNIPCI will never delete or add anything into your autoexec nor system.ini, you can ofcourse use different IRQ and other stuff as you wish, but this is whate I have tested and it worked. If stereo is swapped in some game, try to use T4 instead of T6.
In your BIOS, set IRQ5 and DMA 1 and 5 for ISA only (the same as if you have a normal ISA card),
now the most important thing: IRQ of PCI slot where your card is must NOT be the IRQ you have in your set blaster, whole SB16 is emulated on IRQ 5, but for PCI slot where your card is located, set IRQ10 or 11 in bios, this is really important.
Another very important warning - these cards are crashing when PCI clock is more than 33 MHz, so with many motherboards (like MBs with Slot 1) you will be limited to FSB 66-100 MHz max.
Whole driver is a little big bigger because it contains even midi fonts and source code.
This is still a working version, there is a lot of mess, AI slop in readme files, mix of Czech and English, instructions that are outdated and non relevant anymore, I will eventually clean it and writte some proper readme manually, but I am totally tired now, so I want to share it already now, so be patient while reading it, some things may be illogical.
UNIPCI.com and folder SBDOS must be in the same root folder (for example on C:\)
When you run UNIPCI /orig you can compare how original creative drivers sounds like (with all bugs).
There is a limit 5 MB for one file here, so it has 3 parts, copy them all into the same folder and unpack it.
Do whatever you want with that, modify, keep working, I don't care, but it contains files from original Creative's drivers, so I am not marking it as open source for this reason.
Some typing errors - I meant CMI8738, not 8378 and CT5803, not 5830
I hope I will not get banned for 3 comments (it happens in some other forums) but I meant config.sys ofcourse, not system.ini, I was really tired. 😁
And BTW, I had one ESS1868 made by IBM that was not deteced by UNISOUND, but it worked with original driver, I don't know if it's just about adding name of the card to list of supported cards, I don't know, I just wanted to report it
AND cards ESS1688 NEED another driver called ENMPU.exe to make MPU-401 working, but it took me a lot of time to find out, if someone who is working on it now could somehow integrate it, that would be really usefull.
ESS688 doesn't have any MPU-401, so don't waste your time by trying to make it work, those PCBs are universal for both 688 and 1688 (when I desoldered 1688 chip, there was written ESS688 under it on PCB and I tried to solder ESS1688 chip to ESS688 and MPU started working (with ENMPU) so these PCBs are universal, so when it has wavetable connector and external midi connector, but it has ESS688 chip, it will not work, they just lied to you back in 90s. 😁