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

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 250
  • Karma: +21/-0
    • View Profile
Strange behaviour in SDL2
« on: May 23, 2023, 10:00:51 am »
So, I'm working on PrBoom again and I noticed a strange behaviour:
Sometimes when I start the program, there is sound. Sometimes, when I use the volume program, the sound become audible, even if I press the plus sign only once, so that the volume is going down or up one point. The direction doesn't matter.
I'm running a T480 with the newest ArcaNoae Uniaud (I also tried Paul's newer version, no change there). SDL2 is locally build copy of the most recent repo.

The question is, whether somebody knows this phenomenom and point me to some solution.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4160
  • Karma: +39/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Strange behaviour in SDL2
« Reply #1 on: May 23, 2023, 02:55:51 pm »
Hi Jochen

I'm using this version of PRBoom+
  https://github.com/josch1710/prboom-plus/releases/download/v2.6um-alpha1/prboom-plus-2.6um-alpha1.zip
To run PRBoom+ it is needed:
  yum install flac fluidsynth SDL2_image

I also experience a problem with the sound. The "action sounds" of the menu and the shots of selecting the menu items sounds fine on the startup, but later when I start up the game the sound is gone. If I close the game and start it over, sometimes I get the menu sound back and sometime don't. 
I made this quick video: https://youtu.be/ssjtBMSdwis

I don't see the SDL Mixer on the exe, which is the audio stuff for SDL. Maybe is some issue with flac.
I haven't added MIDI support to my system to see if the background music works.

Regards
« Last Edit: May 23, 2023, 03:40:47 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 250
  • Karma: +21/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #2 on: May 24, 2023, 10:57:51 am »
Hi Martin,

thanks for the feedback. At least, I'm not alone.
My working copy has SDL Mixer linked, that doesn't seem to be the issue.
My current hunch is, that something in SDL2 in conjunction with PrBoom goes wrong.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4160
  • Karma: +39/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Strange behaviour in SDL2
« Reply #3 on: May 24, 2023, 02:19:46 pm »
Hi Jochen

You may already know about this, we have two distros of SDL and SDL2.
One on Netlabs rpm (I guess from BitWise Works) and the other from Digi (http://os2.snc.ru/product-SDL.html)

Maybe you would like to test a release with Digi's SDL and see if there is any improvement.  Is that what you did to don't have the issue?

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

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 250
  • Karma: +21/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #4 on: May 24, 2023, 04:16:18 pm »
Hi Jochen

You may already know about this, we have two distros of SDL and SDL2.
One on Netlabs rpm (I guess from BitWise Works) and the other from Digi (http://os2.snc.ru/product-SDL.html)

Maybe you would like to test a release with Digi's SDL and see if there is any improvement.  Is that what you did to don't have the issue?

Regards
No, I didn't test Digi's SDL.
Also I don't get what you mean by your last sentence.
 

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4160
  • Karma: +39/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Strange behaviour in SDL2
« Reply #5 on: May 24, 2023, 04:40:49 pm »
Hi Jochen,

Sorry my last sentence was confusing because  I didn't understand this:
My working copy has SDL Mixer linked, that doesn't seem to be the issue.
I got confused there, please ignore my last sentence.

I guess that it would be good to try to use Digi's SDL2 and if the problem gets solve like magic, it most be some issue with the Netlabs RPM SDL2.

Just in case I have Digi's SDL2 source code copied here:
- https://github.com/OS2World/LIB-SDL2/tree/master/packages
- Original source: ftp://digi.os2.snc.ru/pub/SDL

while Netlabs RPM Bitwise Source code is here:
- https://github.com/bitwiseworks/SDL2-os2
- https://github.com/bitwiseworks/SDL2_mixer-os2
- https://github.com/bitwiseworks/SDL2_image-os2
... and others

Regards
« Last Edit: May 24, 2023, 04:53:49 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 250
  • Karma: +21/-0
    • View Profile
Re: Strange behaviour in SDL2
« Reply #6 on: May 25, 2023, 09:18:40 am »
Hi Martin.

Thanks for the hints, but I know them, because I made some fixes on them and use them for debugging.