Search found 113 matches

by JosepMa
Sat 02 Sep, 2017 2:33 pm
Forum: Development
Topic: [BUG] System shock crash on launch on specific cases
Replies: 8
Views: 1289

[BUG] System shock crash on launch on specific cases

Hi. While I was debugging the problem with AWE32 chorus that you reported with System Shock, I had some problems to make it run. I got a copy of the cd version from internet. Depending on the drivers that i load ( config.sys, autoexec.bat ), the emulator crashes at game startup due to a "fatal()" ca...
by JosepMa
Sat 02 Sep, 2017 1:11 pm
Forum: Development
Topic: [PATCH] AWE32 improvements
Replies: 17
Views: 1810

Re: [PATCH] AWE32 improvements

Hi. I've corrected an error in the chorus engine and also forced sane max values, even though I don't know the exact reason why you needed to ensure that the value was 0 or above for System Shoch (I logged the values received and they were adequate). Didn't hear anything strange in E1M2, but the cho...
by JosepMa
Thu 31 Aug, 2017 8:58 pm
Forum: Development
Topic: Patches for wxWidgets/SDL2
Replies: 22
Views: 2830

Re: Patches for wxWidgets/SDL2

There's an image missing in this commit:
https://bitbucket.org/JosepMaJaz/pcem/c ... 3af80a963f
wxrc -c pc.xrc -o wx-resources.cpp
22:55:34: Error: can't open file '.\icons/32x32/computer_go.png' (error 2: el sistema no puede encontrar el archivo especificado.)
by JosepMa
Wed 30 Aug, 2017 9:21 pm
Forum: Development
Topic: [PATCH] better Soundblaster bass/treble controls
Replies: 1
Views: 332

[PATCH] better Soundblaster bass/treble controls

Hello. While I continue to work on the sb mixer/recording (which is done for midi, aside of that dma16 bug, and now I was trying to record CD audio, if it doesn't add much complexity), I decided to put out this other smaller patch that simply fixes the sound of the bass/treble controls. Now this sou...
by JosepMa
Sun 27 Aug, 2017 2:35 pm
Forum: Development
Topic: [WIP] Improving SB Mixer emulation
Replies: 8
Views: 893

Re: [WIP] Improving SB Mixer emulation

Update: I detected one of the problems. The bug that required one more sample is in dma.c line 666. There's an extra "+1". I still have the random extra sample each 2756 samples. Update 2: The extra samples is present also when recording in 8bits. I wonder if maybe it's a bug of the driver or someth...
by JosepMa
Sun 27 Aug, 2017 11:24 am
Forum: Development
Topic: [WIP] Improving SB Mixer emulation
Replies: 8
Views: 893

Re: [WIP] Improving SB Mixer emulation

Hello. I have a working recording code, which is capable of recording audio from midi (emu and opl3) with soundblaster 16 and awe32 (apparently, the others only record from ADC). Different samplerates can be used, but I need to add a proper resampler or filter, since recording the EMU8K at 11Khz giv...
by JosepMa
Fri 25 Aug, 2017 5:03 pm
Forum: Development
Topic: Windows 10 problem
Replies: 28
Views: 1885

Re: Windows 10 problem

There isn't any big problems related to compatibility with Windows 10. Even Pcem v11 works with it.

Paste your pcem.cfg file, to see if there is something unusual in the configuration.
by JosepMa
Wed 23 Aug, 2017 9:38 pm
Forum: Development
Topic: [PATCH] AWE32 improvements
Replies: 17
Views: 1810

Re: [PATCH] AWE32 improvements

sa1988 : If you just applied the patch and didn't recompile everything, you might have a broken compilation.. Try to do a make clean.
by JosepMa
Wed 23 Aug, 2017 7:10 pm
Forum: Development
Topic: [WIP] Improving SB Mixer emulation
Replies: 8
Views: 893

[WIP] Improving SB Mixer emulation

Hello. I started working on improving the Soundblaster Mixer emulation. The current implementation works adequatedly, but my changes try to emulate each of the different chips on the different models, and implement all of its features according to the SoundBlasterProgramming.pdf . As such, I've impl...
by JosepMa
Tue 22 Aug, 2017 9:00 pm
Forum: Development
Topic: [PATCH] AWE32 improvements
Replies: 17
Views: 1810

Re: [PATCH] AWE32 improvements

Ok, here's the updated patch.
Indeed, it was the "HWCFG3" register, which now I obey.

I added a patch for DOOM, which simply does no configuration of the card at all. (but it does read these registers).
by JosepMa
Tue 22 Aug, 2017 6:35 pm
Forum: Development
Topic: [PATCH] AWE32 improvements
Replies: 17
Views: 1810

Re: [PATCH] AWE32 improvements

I don't have that game, so I got the shareware 1.9 from here . ( played rise of the triad/ duke nukem 3d at that time :P ) I can confirm that initially, it doesn't work. I say initially, because it seems that it is related to some volume or a mute setting that I implemented. In fact, I confirmed it ...
by JosepMa
Sun 20 Aug, 2017 9:59 am
Forum: Development
Topic: Development screenshots
Replies: 44
Views: 17953

Re: Development screenshots

I am attaching some screenshots of the SLI in action. Image quality of the screenshots is reduced due to jpeg artifacts due to attachment size limits. The game is GPolice being run at 1024x768 without issues. On the task manager, the different threads can be seen. Note that since PCEm does not attac...
by JosepMa
Fri 18 Aug, 2017 9:52 pm
Forum: Development
Topic: [PATCH] AWE32 improvements
Replies: 17
Views: 1810

Re: [PATCH] AWE32 improvements

Hello.

Here's an updated patch file with some fixes, code formatting and overall ok performance (Reverb emulation is far from perfect)
emu8k-josepma.patch
reuploaded (there was a volume log in the older one)
(173.08 KiB) Downloaded 23 times
by JosepMa
Wed 16 Aug, 2017 6:41 pm
Forum: Development
Topic: 3DFX emulation
Replies: 190
Views: 53750

Re: 3DFX emulation

Compiling with gcc 7 and -Wall gives this error: vid_voodoo.c:7393:17: error: specified bound 512 equals the size of the destination [-Werror=stringop-overflow=] strncat(temps, temps2, 512); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ vid_voodoo.c:7399:17: error: specified bound 512 equals the size of the destinati...
by JosepMa
Sun 13 Aug, 2017 9:12 pm
Forum: Development
Topic: [PATCH] MovQ MMX Realmode bugfix
Replies: 1
Views: 347

[PATCH] MovQ MMX Realmode bugfix

Hello.

I attach a patch that fixes an error in the MOVQ MMX instruction when used in 16bit real mode (i guess that's what the "_a16" means).

This bug is the one that caused bad audio with Impulse tracker and the MMX drivers.
bugfix-movq-realmode.patch
bufix Movq mmx
(597 Bytes) Downloaded 28 times
by JosepMa
Sat 12 Aug, 2017 9:51 am
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 20224

Re: [Linux] GUI discussion

I thought I'd share the modified Makefile.mingw-wx-sdl2 that I use in msys2 to build this ( works in Pcem's main repo and bit's one. The only change required is to change __MINGW64__ for __MINGW32__ in cdrom-ioctl.c if you build for 32bits )
by JosepMa
Sat 12 Aug, 2017 9:35 am
Forum: Development
Topic: Networking discussion
Replies: 228
Views: 54430

Re: Networking discussion

While I don't know how the networking code has been implemented, the difference between the slirp and pcap concepts lies on where the communication happens. The concept of slirp does not require a system driver, because the application is acting on behalf of the emulated system. In some sense, it wo...
by JosepMa
Wed 09 Aug, 2017 9:27 pm
Forum: Development
Topic: [PATCH] AWE32 improvements
Replies: 17
Views: 1810

Re: [PATCH] AWE32 improvements

I found an error in the reverb ( wasn't setting correctly the feedback of some of the reflections ) and now I need to make changes and retweak it, since now it sounds excessive.
Will try to tweak it over the week and resend the patch.
by JosepMa
Wed 09 Aug, 2017 7:16 pm
Forum: Development
Topic: [PATCH] AWE32 improvements
Replies: 17
Views: 1810

Re: [PATCH] AWE32 improvements

Oh... I suppose you mean the comments, since on most of them I've used // instead of /**/, the other rules are followed, or almost followed.
by JosepMa
Tue 08 Aug, 2017 2:44 pm
Forum: Development
Topic: [PATCH] AWE32 improvements
Replies: 17
Views: 1810

Re: [PATCH] AWE32 improvements

leilei: Currently, the reverb is implemented with 6 early reflections and one late tail, which currently isn't much long with any setting. I assume you're using a preset like Hall 1 or Hall 2 where the early reflections are minimized and most of the sound comes from the tail. Said that, possibly i a...
by JosepMa
Mon 07 Aug, 2017 9:07 pm
Forum: Development
Topic: [PATCH] AWE32 improvements
Replies: 17
Views: 1810

[PATCH] AWE32 improvements

Hello. This is the patch with the changes I made to improve the compatibility and features of the AWE32 emulation that I started in this thread . This one contains chorus and reverb, although the emulation is not much good. The chorus seems a bit detuned in some configurations, and the reverb isn't ...
by JosepMa
Wed 02 Aug, 2017 9:53 pm
Forum: Development
Topic: [Bug] IDE HDD stuttering emulation
Replies: 27
Views: 2264

Re: [Bug] IDE HDD stuttering emulation

I also don't think that the Host's I/O plays any role in this problem (Maybe in the Hosts' CDROM case but not on HDD image). The problem is on the emulated side. I don't know if you have experienced it, but audio stuttering on Windows 98 startup sound is the norm here, and that's with an i7 6700 @3....
by JosepMa
Wed 02 Aug, 2017 7:27 pm
Forum: Development
Topic: [Bug] IDE HDD stuttering emulation
Replies: 27
Views: 2264

Re: [Bug] IDE HDD stuttering emulation

The thing that I don't understand is why does disk I/O affect the emulated speed. Concretely, the emulated CPU is halted while I/O operations are in place. Once, installing software from a Host's CDROM drive, 10 minutes passed on the Host side while only 2 minutes passed on the emulated side. If it ...
by JosepMa
Sun 30 Jul, 2017 12:38 pm
Forum: Development
Topic: [Patch] Fixed misleading indentation above GCC 6.x.x
Replies: 9
Views: 846

Re: [Patch] Fixed misleading indentation above GCC 6.x.x

No. The Makefile that autoconf generates for the sources is sized 350KB. Compared to 4KB of the manually created one. (ok, generally these files have many unnecessary things but still..) But the important part is that a subdir ".deps" is generated with some files with a .To extension that have the d...
by JosepMa
Sun 30 Jul, 2017 9:15 am
Forum: Development
Topic: [Patch] Fixed misleading indentation above GCC 6.x.x
Replies: 9
Views: 846

Re: [Patch] Fixed misleading indentation above GCC 6.x.x

This is a GCC/GNU Make problem - it does not keep a list of which files use which headers. OpenWatcom, for example, does, so whenever I change a header, it automatically recompiles every single file that includes it. I think so does Visual Studio. There is a way around it, though, by listing which ...
by JosepMa
Sat 29 Jul, 2017 6:25 pm
Forum: Development
Topic: [Patch] Fixed misleading indentation above GCC 6.x.x
Replies: 9
Views: 846

Re: [Patch] Fixed misleading indentation above GCC 6.x.x

Yeah.. I am not compiling in 64bits with mingw, even though I have it installed. Basically, I had read that the 64bits one was less stable (especially the voodoo part) and had a few random issues when building on linux 64bits, so when I finally got msys2 to compile, i simply stayed with 32bits. Btw....
by JosepMa
Sat 29 Jul, 2017 4:27 pm
Forum: Development
Topic: [Patch] Fixed misleading indentation above GCC 6.x.x
Replies: 9
Views: 846

Re: [Patch] Fixed misleading indentation above GCC 6.x.x

@Battler: as for the NT DDK, I changed the _MINGW64 #ifdef to __MINGW32__ and that worked for me. (msys2). ( __MINGW64__ is only defined when building for 64bits ) About the linker libraries, supposedly, we should be using wx-config --libs , sdl-config --libs (or sdl2-config --libs), and I thought t...
by JosepMa
Wed 26 Jul, 2017 7:56 pm
Forum: Development
Topic: [Bug] (AMI WinBIOS 486) 486 processors having issues
Replies: 20
Views: 1486

Re: [Bug] (AMI WinBIOS 486) 486 processors having issues

Edit/qbasic working fine here too. I just checked, and it might be a problem with a specific ROM (not sure if buggy, or what). This one fails: AAAAMMMMIIII04040404////04040404////1111999999993333 Date:-04/04/93 (C)1985-1993 This one works: AAAAMMMMIIII00008888////00008888////1111999999993333 Date:-0...
by JosepMa
Wed 26 Jul, 2017 6:18 pm
Forum: Development
Topic: [Bug] (AMI WinBIOS 486) 486 processors having issues
Replies: 20
Views: 1486

Re: [Bug] (AMI WinBIOS 486) 486 processors having issues

Mmmm... something strange does happen.

With such a setup, using the DX2/66, loading dosidle, or a program that uses dos4gw just hangs there, doing nothing.

The weird thing is that, if at that point, I switch to a DX4/100, this does not reset PCem and the loading finishes successfully.
by JosepMa
Sat 22 Jul, 2017 10:06 am
Forum: Development
Topic: Your build environment
Replies: 2
Views: 406

Re: Your build environment

Here is mine (Under windows): Msys2 : http://www.msys2.org/ currently with these versions: - GCC 7.1.0-2 (right now only using the 32bit compiler) - Make 4.2.1-1 - openal 1.18.0-1 Initially, i installed Directx SDK 9, but currently I think i'm using the libraries from MSYS2 itself. (I think i had to...