Coder Social home page Coder Social logo

Update SDL to 2.0.6 about berserkerquake2 HOT 4 OPEN

ROCKNROLLKID avatar ROCKNROLLKID commented on June 27, 2024
Update SDL to 2.0.6

from berserkerquake2.

Comments (4)

UCyborg avatar UCyborg commented on June 27, 2024

It seems newer SDL versions favor WASAPI as the default sound backend on Windows, resulting in sound initialization failure. If they're not planning to drop DirectSound support as well, adding a console variable to set sound backend and defaulting to DirectSound might restore the sound without having to manually set environment variable. Otherwise, sound code would have to be updated. I might look into this when I have more time.

from berserkerquake2.

ROCKNROLLKID avatar ROCKNROLLKID commented on June 27, 2024

2.0.7 is now the latest, but nothing new on he sound backend. I don't think they have any plans to drop direct sound, as far as I am concerned.

from berserkerquake2.

hgdagon avatar hgdagon commented on June 27, 2024

@UCyborg since we're talking about sound, let me mention that I had a problem with all SDL apps on my current (Win10) laptop. I did not have that problem on my Win7 laptop, but, apparently, you need to define an environment variable for that to work. Surprisingly, I never defined that on my Win7 and all SDL apps (included those that failed on Win10) worked just fine...

from berserkerquake2.

UCyborg avatar UCyborg commented on June 27, 2024

It's possible to get the game to use WASAPI without altering the code passing the sound samples, so just calling SDL_OpenAudio with NULL obtained parameter, which makes SDL2 do the necessary conversions. Apparently passing audio to WASAPI can only be done using 32-bit float format, while the old sound code uses 16-bit integer format. I tried that, but it makes it sound kinda odd...

@hgdagon There's no sound in Berserker by default neither on Windows 7 under the same conditions with SDL 2.0.6 and above. Setting environment variable via batch file is one way, but it can also be set programmatically.

from berserkerquake2.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.