Author Topic: Strange behaviour in SDL2  (Read 60385 times)

Lars

  • Hero Member
  • *****
  • Posts: 1428
  • Karma: +72/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #60 on: August 14, 2023, 09:34:13 pm »
@Lars, I don't quite get, what you are getting at. On my machine, the SDL2 tests work.

Use the test apps to play the sound file and manipulate the volume while doing so.

David McKenna

  • Hero Member
  • *****
  • Posts: 878
  • Karma: +30/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #61 on: August 14, 2023, 10:14:13 pm »
Hi Jochen,

  According to PMDLL, 'Rocks and Diamonds' uses SDL2200.dll, SDL2I200.dll, SDL2M200.dll, and SDL2N200.dll. PRBoom uses SDL2I200.dll only (which in turn uses SDL2200.dll). So it looks like they are using the same version, but in a different manner...

Regards,.

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 388
  • Karma: +30/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #62 on: August 15, 2023, 09:46:46 am »
Hi Jochen,

  According to PMDLL, 'Rocks and Diamonds' uses SDL2200.dll, SDL2I200.dll, SDL2M200.dll, and SDL2N200.dll. PRBoom uses SDL2I200.dll only (which in turn uses SDL2200.dll). So it looks like they are using the same version, but in a different manner...

Regards,.
Yes, PrBoom does some strange things with the SDL2 audio/mixer interface. I'm working at the moment to have the launcher dialog at startup.
I then can work on the sound issues.


Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 388
  • Karma: +30/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #63 on: August 15, 2023, 09:47:27 am »
@Lars, I don't quite get, what you are getting at. On my machine, the SDL2 tests work.

Use the test apps to play the sound file and manipulate the volume while doing so.
No crash on my machine.
@David: What is your setup?

David McKenna

  • Hero Member
  • *****
  • Posts: 878
  • Karma: +30/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #64 on: August 15, 2023, 12:00:31 pm »
 Jochen,

 I'm running a recent install of ArcaOS 5.0.8 with all yum stuff updated to most recent, and latest Arca UNIAUD on bare metal. Tried older UNIAUD and Paul's builds, but no difference. I should point out I don't get a crash, I get a total system hang when trying to use the volume app. Also get a hang when I go to close the game. I've also tried changing various settings in PRBoom, but nothing has helped so far...

Regards,

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 388
  • Karma: +30/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #65 on: August 15, 2023, 01:10:54 pm »
Hi David.

You are correct, but no hang for me, sadly. Can you tell us something about your machine?

Lars

  • Hero Member
  • *****
  • Posts: 1428
  • Karma: +72/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #66 on: August 15, 2023, 01:32:40 pm »
Posting the MMPM2.INI would also be potentially helpful.

David McKenna

  • Hero Member
  • *****
  • Posts: 878
  • Karma: +30/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #67 on: August 15, 2023, 11:15:23 pm »
 Jochen and Lars,

  I'll attach a testlog (has all my systems' gory details) and MMPM2.INI...

Regards,

Lars

  • Hero Member
  • *****
  • Posts: 1428
  • Karma: +72/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #68 on: August 16, 2023, 11:32:15 am »
Do you have 2 CD-ROM/DVD Drives? If not, remove the drives from MMPM2.INI (IBMCDAUDIO01, IBMCDAUDIO02, including the corresponding sections). Take into account if you have potentially specified a CD-ROM USB drive as that counts as a drive even if it is not attached (it is reserved as such nonetheless).
As a test, remove ksoftseq. The easiest way to do this is to make a backup copy of MMPM2.INI and then to remove
 from MMPM2.INI everything relating to ksoftseq. I can say that I had problems running ksoftseq.
« Last Edit: August 16, 2023, 12:01:20 pm by Lars »

David McKenna

  • Hero Member
  • *****
  • Posts: 878
  • Karma: +30/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #69 on: August 16, 2023, 12:16:04 pm »
 Lars,

  The 2nd CD was a USB one used for testing - removed. I also removed KSoftSeq, but it didn't help, PRBoom still hangs the computer if I use the volume control, and when I try to close the game.

Regards,

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 388
  • Karma: +30/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #70 on: August 16, 2023, 01:26:49 pm »
Does the CAD handler still work? If yes, can you kill the process?

David McKenna

  • Hero Member
  • *****
  • Posts: 878
  • Karma: +30/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #71 on: August 16, 2023, 09:59:45 pm »
Hi Jochen,

  No, <ctrl><alt><del> does nothing, nor <ctrl><alt><num-lock><num-lock>, so can't even get a dump. Have to hit the reset button on the computer.

Regards,

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5256
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Strange behaviour in SDL2
« Reply #72 on: August 17, 2023, 03:43:15 pm »
Hi Jochen

While you are checking this out, do you think it can be possible also to update PrBoom+ ? For what I see the latest version is 2.6.66 and the OS/2 version is 2.6um-alpha1. Can you give it a try to see if version 2.6.66 still compiles under OS/2 with what we have? ?

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 388
  • Karma: +30/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #73 on: August 17, 2023, 05:06:45 pm »
2.6.66 is compiling and running just fine. As I said before, I'm working on the launcher dialog. When I'm done, I will drop a new binary.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5256
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Strange behaviour in SDL2
« Reply #74 on: August 18, 2023, 08:29:24 pm »
@Martin: I do have KSoftSeq installed and it works, thanks. Was wondering which MIDI interface to use with PRBoom...

Regards,

David, I was checking some documentation and I found:

"Get "https://www.libsdl.org/projects/mixer/timidity/timidity.tar.gz". Unzip this files on /etc/timidity and you will get support for the MIDI music."

I checked today with my ArcaOS 5.0.8, with  KSoftSeq, and timidity.tar.gz, and the MIDI files are working on my Thinklad L420. PRBoom+ gives me some music background here.

Regards

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.