[obsolete] Updated OpenAL DLLs (fixes stereo weapon sounds)

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Locked
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

[obsolete] Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by Nash »

UPDATE: with the official release of GZDoom 3.1.0, these homebrew DLLs are now obsolete. Removing content to prevent users from downloading unofficial files
Last edited by Nash on Wed May 31, 2017 7:56 am, edited 4 times in total.
User avatar
Rachael
Posts: 13542
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by Rachael »

_mental_ did something similar, although by now I am sure his files are older.

I don't know how "stable" Chris considers these particular revisions, but at any rate, I do think that once Blzut3 gets the opportunity, he will probably update his packaging for the devbuilds so that they come out with at least one set of the newer files.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by Graf Zahl »

What are these compiled with?
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by _mental_ »

Apparently with VS2015, it uses dynamic runtime as far as I can tell.
HRTF data were not embedded by the way.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by Graf Zahl »

Ok, in that case they are useless for deployment.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by Nash »

Yeah these were put together really quickly so users can play with stereo sounds while waiting for official updates... I wouldn't use these for deployment and production.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by Nash »

Okay since I've already posted about it 3 times in the Devbuilds thread with no response, and I don't feel like posting a fourth time...

What do I need to do to compile the OpenAL DLL properly?

Particularly:

1) What should I do to make the HRTF data embedded correctly?

2) I take it using dynamic runtime isn't good, so - what should I do instead?
User avatar
Chris
Posts: 2941
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by Chris »

Nash wrote:1) What should I do to make the HRTF data embedded correctly?
Pass -DALSOFT_EMBED_HRTF_DATA=ON to cmake (enable ALSOFT_EMBED_HRTF_DATA if you're using a GUI that lists options).
2) I take it using dynamic runtime isn't good, so - what should I do instead?
For MSVC, pass -DFORCE_STATIC_VCRT=ON to cmake (enable FORCE_STATIC_VCRT).
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by _mental_ »

To make ready-to-distribute version you need to:
  • Use v140_xp toolset in VS2015 or v141_xp in VS2017
  • Enable ALSOFT_EMBED_HRTF_DATA option during configuration via CMake
  • Change /MD switch to /MT in CMAKE_C_FLAGS_RELEASE option in CMake (I assume that you about to build Release configuration)
While checking these requirements I built both 32- and 64-bit DLLs with VS2015 and uploaded them here.
I didn't test these DLLs but they should be pretty stable, at this commit to be precise.
User avatar
Chris
Posts: 2941
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by Chris »

_mental_ wrote:Change /MD switch to /MT in CMAKE_C_FLAGS_RELEASE option in CMake (I assume that you about to build Release configuration)
That's what the FORCE_STATIC_VCRT option does:

Code: Select all

OPTION(FORCE_STATIC_VCRT "Force /MT for static VC runtimes" OFF)
IF(FORCE_STATIC_VCRT)
    FOREACH(flag_var
            CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
            CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
        IF(${flag_var} MATCHES "/MD")
            STRING(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
        ENDIF()
    ENDFOREACH(flag_var)
ENDIF()
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by _mental_ »

Thanks, I was not aware of this option.
User avatar
DaMan
Posts: 727
Joined: Fri Jan 01, 2010 7:14 am

Re: Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by DaMan »

You can link with "/NODEFAULTLIB:libucrt.lib ucrt.lib" to dynamic link to the UCRT and static link the VC bits. WannaCry took care of any PCs that haven't run Windows Update.
Or use GCC and link to þe olde msvcrt. Here's a 64bit GCC7 build.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Updated OpenAL DLLs (fixes stereo weapon sounds)

Post by Nash »

_mental_ wrote:To make ready-to-distribute version you need to:
  • Use v140_xp toolset in VS2015 or v141_xp in VS2017
  • Enable ALSOFT_EMBED_HRTF_DATA option during configuration via CMake
  • Change /MD switch to /MT in CMAKE_C_FLAGS_RELEASE option in CMake (I assume that you about to build Release configuration)
While checking these requirements I built both 32- and 64-bit DLLs with VS2015 and uploaded them here.
I didn't test these DLLs but they should be pretty stable, at this commit to be precise.
Thank you! I am updating the OP to link to your binaries.
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: [obsolete] Updated OpenAL DLLs (fixes stereo weapon soun

Post by Blue Shadow »

Locked by request from the topic starter.
Locked

Return to “General”