Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lars

Pages: [1] 2 3 ... 91
1
Question is: how does the I2C controller interface to the PC system?

Does the I2C controller show up as a PCI device ? Is there a standardized set of (io mapped or memory mapped) registers or some such to talk to the I2C controller ?
I also cannot find any information on how to unambiguously identify a device on the I2C bus. You can scan the I2C bus and see what device addresses are in use but not exactly what device (like for USB, the vendor and product id ...).

That seems to be pretty proprietary, from what I can tell all scan code for I2C devices guesses the device by its typical address use.

2
Programming / Re: [SDL2] SDL_ListModes and emulation
« on: November 01, 2024, 09:41:02 am »
Hi Lars

I deleted the sdl2*.dll files that starfighter definitely uses and updated SDL2 to 2.28.1-1 then tried running Starfighter.
Result: Error window displayed stating Cannot start J:\Games.eCS\StarFighter\starfighter.exe ...

Dropped starfighter.exe onto the PMdll object which shows starfighter needs the following files to run
sdl2.dll
sdl2mix.dll
sdl2img.dll

The above are not included in SDL2 2.28.1-1
Maybe you already have those somewhere on the libpath? - Or am I missing some sort of "forwarder" dll file where calls to sdl2*.dll files get passed to sdl2200.dll?


Regards

Pete

Ah, ok. I was mislead by you stating that the SDL2 package installed by ANPM "does not work". I thought that that would trap your system or some such.
Now I see that the game uses a completely different SDL2 implementation (thanks OS/2 for being such a mess).
I found the mentioned SDL2 files in my \ecs\dll directory and they are from 2016. Likely the package that you also have installed. So no, you are not missing anything.

By the way, I find this newer package:
http://www.hobbesarchive.com/Home/Download?path=/Hobbes/pub/os2/dev/libraries/graphics/SDL2_2-0-4_2020-09-07.zip

Have you tried that or is it better to stick to the package from 2016 ?

3
Programming / Re: [SDL2] SDL_ListModes and emulation
« on: October 31, 2024, 07:28:27 pm »
Hi Mentore

I have not played any ZX Spectrum games in many years, would not mind having another go at pacman as I think the Speccy version was the best.

Starfighter (downloaded from hobbes) is an SDL2 game that runs in a window so SDL2 for OS/2 should not be fullscreen only.

However, Starfighter does not work with SDL2 files installed by ANPM - currently at 2.0.18-3 -   but requires an earlier package http://hobbes.nmsu.edu/download/pub/os2/dev/SDL2-2.0.4-20160225.zip in order to run.

So, I guess the question is: Are you using the right variant of SDL2?


Regards

Pete

Hi Pete,

1) I downloaded "Project_Starfigher_1-6.zip" from Hobbes
2) I have SDL2 version 2.28.1-1 installed, so that is newer than what you have. I got this either from Netlabs or Netlabs experimental as an RPM, you should be able to also install it.

That works just fine with USB audio as well as on board audio (UNIAUD). I can switch back and forth the default audio device and that also works just fine.

4
Programming / Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« on: October 31, 2024, 01:04:59 am »
See here:

http://www.hobbesarchive.com/Home/Download?path=/Hobbes/pub/incoming/VAC_3-6-5_InstallFix_2024-10-31.zip

Once you copied the CD-ROM to a temp dir and dropped the ZIP over it, you just need to get the two Fixpak 2 files and drop them into the FIXPAK2 folder.
The main folder contains the main install REXX script, the FIXPAK2 folder contains the two REXX install scripts to install the 2 fixpak files.

5
Sigurd,

This

  SS:ESP=05c7:00003732  SSACC=00f3  SSLIM=00003fff

indicates we failed with stack overflow.  Of course, this does not tell us why.  We need to see to logs to get some idea of what the installer was doing at the time of the exception.

Hi Steve,

can you briefly explain why ? The segment is not an expand down segment so the offset (3732) should always be <= lim (3fff) which it is.

To me the error more looks like 5c7:4f34 (ES:"value of P2") has been attempted to access (DS is 0 which seems odd ...). And 4f34 certainly exceeds 3fff.

By the way: do you know what P1=00000008 (XCPT_SPACE_ACCESS) is supposed to mean ? I could not find any info about that.

6
Programming / Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« on: October 25, 2024, 02:07:51 pm »
The FI browser plugin largely cripples the capabilities of Feature Install.
For example, you are very limited in selecting/deselecting packages (for VAC 3.6.5 the only thing you can do is to install or not install the toolkit). Plus it is more of a hassle rather than help.

As Alex Taylor has presented, using FI via the command line (clifi.exe) is not too difficult and my REXX scripts make use of that. They even avoid the need for any manual interaction (apart from selecting/deselection of packages which I think is a fair enough reason for manual interaction).
The fixes also install via REXX scripts and FI is smart enough to find out what to update and where the original install is located.

7
Programming / Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« on: October 24, 2024, 07:13:27 am »
I have created a CD-ROM that contains a few Rexx scripts that build upon the Feature Installer. No need for Netscape. I can bundle the changes in a ZIP and then you need to do this:
1) copy your cd-rom to a tmp dir
2) drop the zip content on top of that. Due to licensing issues, you will also need to get the fixpak and put it in a subdir
3) burn a new cd-rom from that

You can then just invoke the rexxscript that allows you to select a target location. The rexx script for the fixpak needs no additional info as it can locate the install location via feature install.

8
@Lars: It was a typo. I corrected my post.
The source code should be on BWW's Guthub. IIRC, the old SDL2 audio was an almost straight copy from SDL.

If I search for "SDL" on BWW's github, I only find "SDL2" stuff.

9
Hi Lars

The SDL package in use is SDL-1.2.15-5.oc00.pentium4.rpm (from netlabs-rel) which provides the sdl120.dll required by dosbox074_2020-11-04.wpi which seems to be the latest release.

No response to my email to Jochen


Regards

Pete
@Pete: Sorry, I was sick. You got a response ;-)

To clarify: DOSBOX proper only uses SDL. The maintainers have explicitely stated, that they don't want to use newer SDL libs and stay with SDL2.
I haven't looked into DOSBOX-X or other forks, yet.

1) @Pete: I need the sources for SDL in order to fix it.
2) @Jochen: I am confused, you mean to say "they don't want to use newer SDL libs and stay with SDL." Correct ?

10
Too bad. I only fixed SDL2. I cannot even find the SDL that we use.
Maybe it's time to build a version of dosbox that uses SDL2.

11
Hi Lars. Dosbox is an emulator, uses SDL or SDL2 for video, sound etc to emulate a DOS environment, so nothing to do with a DOS VDM.

That is really odd. I helped Jochen to implement correct default device selection and also recording capability in SDL2. And I used the SDL2 test programs and they worked ok. Maybe that did not make it into the SDL2 provided by BWW?

From SDL2 I know that it uses DART. But that should work just fine with the USB audio drivers. At least it does here.

12
Pete, can you tell me if my proposition helped?
If not, I would have another idea but that would mean to update the drivers and I would need a "guinea pig" to test...

13
Hi Pete, as far as I know, no sound in DOS now a days, hasn't been since basically ISA days.
Does DosBox give you any other sound driver choices? If so, try them.
At least sound is now working for you, shame only on USB2, which is getting rare in computers. I know I only have USB3 on this box.
You could consider opening an issue with Arca Noae, sounds like their USB sound could be updated and who knows, perhaps USB3 could be fixed.

AN did fixes to USB isochronous audio with 12.16 (I am talking about USBXHCD.SYS). However, it seems that there is enough of a difference between for example Intel chipsets (and their USB 3.x support) and other chipsets (and their USB 3.x support) that sometimes isochronous audio (at least replay) works decently well for Intel but still won't work for those others.

Look here: https://trac.netlabs.org/usb/ticket/96

I don't think that this can be solved in USBAUDIO.SYS / USBAUD2.SYS. This is something that needs to be fixed in the USBXHCD.SYS as seemingly USB 2.x works ok (with the very same USB audio drivers). But I think USB audio has no priority for AN (an industry customer won't care for sure).

DOS box sound support: I have no clue of how audio gets passed over from DOS to the native OS/2 sound driver. It is possible that DOS will only ever use the very first sound device listed in MMPM2.INI (I am just guessing).
In that case, what you could do is change the sequence of devices in this section of MMPM2.INI:

[Drivers]
 Digitalvideo=IBMDIGVIDPLAYER01,IBMMPEGPLAYER01
 Speaker=SPEAKER
 Headphone=HEADPHONE
 Microphone=MICROPHONE
 Filter=IBMFILTER01,IBMFILTER02,IBMFILTER03
 Waveaudio=UNIAUDWAVE01,WMBWAVEUSB01,WMBWAVE2USB01
 Ampmix=UNIAUDAMPMIX01,WMBAMPMIXUSB01,WMBAMPMIX2USB01
 CDaudio=IBMCDAUDIO01,IBMCDAUDIO02
 Sequencer=

What you could try is to change that to:
[Drivers]
 Digitalvideo=IBMDIGVIDPLAYER01,IBMMPEGPLAYER01
 Speaker=SPEAKER
 Headphone=HEADPHONE
 Microphone=MICROPHONE
 Filter=IBMFILTER01,IBMFILTER02,IBMFILTER03
 Waveaudio=WMBWAVEUSB01,UNIAUDWAVE01,WMBWAVE2USB01
 Ampmix=WMBAMPMIXUSB01,UNIAUDAMPMIX01,WMBAMPMIX2USB01
 CDaudio=IBMCDAUDIO01,IBMCDAUDIO02
 Sequencer=

but as I said this is just guessing.




14
Utilities / Re: YUM Issue - Error: database disk image is malformed
« on: October 08, 2024, 07:23:06 am »
Netlabs experimental is also fixed.

15
I rebooted with the soundbar plugged into a usb2 port. Startup sound does not complete, System Setup -> Sound plays the selected sound but Volume is stuck on 100% ie lowering the volume does not lower volume of sound.

Pete

I remember that there was this sound fix that needed to be added to config.sys so that startup sounds will play. Do you have that in config.sys ?

RUN=C:\MMOS2\mmfix.exe

Pages: [1] 2 3 ... 91