indirect sound

Getting old Windows games working.

Re: indirect sound

Postby Falcosoft » 2018-10-01 @ 22:17

UCyborg wrote:Yes, it is. Or why else would there be DirectSound3D Software providers available in the old versions of Miles Sound System?
...
Selecting any of these result in successful initialization on XP:

1. Yes, I was not precise enough. So more precisely: There is no emulated DirectSound3D on XP that gives you proper 3D positional audio contrary to Win Vista+. I have just tested on an 5.1 setup and none of the Directsound3D emulation modes on XP gives 3d positional audio, while on Win 7/10 Directsound3D software emulation gives proper 3d positional audio.
And this is the point I wanted to say: without hardware acceleration you cannot get proper 3d positional audio on XP, but on later Windows versions you can.
ds3d.jpg
User avatar
Falcosoft
Oldbie
 
Posts: 882
Joined: 2016-5-21 @ 13:46
Location: Pécs, Hungary

Re: indirect sound

Postby UCyborg » 2018-10-01 @ 22:45

Thanks for clarifying! So even though it actually does something, it gives incorrect results. And kills the performance.

Anyone knows how DOOM 3's DirectSound renderer performs on XP? I know you must have 5.1 option selected in Windows sound settings in order for it to work right if you pick Surround option in game's sound settings and that way it does work as expected on Vista+. I'd have to check to be sure, but going from my memory, this one doesn't use DirectSound3D at all, right? But there's an option to use OpenAL where 3D positioning works similarly as in DirectSound3D games plus its OpenAL renderer can use EAX 4.0.
UCyborg
Member
 
Posts: 290
Joined: 2015-9-04 @ 11:10

Re: indirect sound

Postby jonpol » 2018-10-03 @ 14:12

bakcom wrote:Should there be an inherent reason why (at least with a specific game and on XP), more than stereo wouldn't work when audio "hardware acceleration" is disabled in Windows?


The posts in response to your question have already covered everything, but if you're curious to try it out for yourself you can use this simple little program that I wrote (also mentioned earlier in this thread):

http://www.indirectsound.com/downloads/Software3d.exe

That demonstrates how DirectSound3D behaves with software buffers, which is exactly what will happen when you disable hardware acceleration. As Falcosoft and UCyborg explained you won't hear any surround speakers being utilized when the program is run in XP.
jonpol
Newbie
 
Posts: 65
Joined: 2013-9-24 @ 19:14

Re: indirect sound

Postby lowenz » 2018-10-03 @ 20:01

Hey jonpol, any news about LithTech and positional sound not updating?
lowenz
Oldbie
 
Posts: 1138
Joined: 2014-12-20 @ 01:30

Re: indirect sound

Postby jonpol » 2018-10-03 @ 23:40

lowenz wrote:Hey jonpol, any news about LithTech and positional sound not updating?


Hi! Sorry, no, I haven't looked into it since the last time you asked :depressed:
jonpol
Newbie
 
Posts: 65
Joined: 2013-9-24 @ 19:14

IndirectSound request for testers

Postby jonpol » 2019-1-14 @ 07:08

I have been working on rewriting a substantial portion of IndirectSound to use Windows Core Audio rather than XAudio2, and while doing so I have moved from Visual Studio 2010 to Visual Studio 2017. (I originally used 2010 because that was when the last version of the DirectX SDK was released and I figured that anyone who could use DirectSound would be able to use a wrapper DLL made with VS2010 for sure without any additional work. This is no longer true since DirectX has been made part of Windows, and using VS2017 is nice because of the compiler/optimizer improvements since 2010 as well as allowing me to use modern C++ features.)

I am posting here to solicit some help testing. To try and be clear , this current version DOESN'T EMULATE ANYTHING! (I don't want anyone to get their hopes up that I'm asking for help testing EAX (yet... :lol: ).) At the moment it is a fancy but useless wrapper that merely passes on all calls from games straight to DirectSound (lol). The testing I am interested in has nothing to do with audio behavior; rather, I am interested in verifying that the DLL still works properly with the changes I've made on systems other than mine and that I am correctly detecting audio hardware on systems other than mine. IndirectSound doesn't have its own forums, and I thought VOGONS readers would have a good chance of being interested/willing in trying something and also having a wide variety of Windowses and hardware.

If you would like to help:
I am hoping to learn the following:
  • Does it work on all Windows versions since Vista SP1?
    • By "work" I mean does the game run without crashing and without Windows showing any error messages
    • (I currently only have my most recent Windows 10 machine and my old Windows XP machine to test with; it would be nice to confirm that I'm not doing anything that would only work on the latest-and-"greatest" Windows)
  • In the generated dsound.log file is your audio hardware and speaker configuration reported correctly?
    • Of particular interest to me is if your audio device uses Dolby Digital (or similar compression). In that case I would very much like to know both what is reported on the "Audio stream initialized" line and in the "The application initialized a new audio endpoint device" section.
You can feel free to email me directly at indirectsound@gmail.com with any results (or post your findings here if you discover anything that would be interesting to the general public). If you email me I would be appreciative if you would attach the generated dsound.log file.

Thanks in advance!
jonpol
Newbie
 
Posts: 65
Joined: 2013-9-24 @ 19:14

Re: indirect sound

Postby lowenz » 2019-1-14 @ 12:24

Thanks John!

The registry mod procedure ( https://www.indirectsound.com/registryIssues.html ) is still needed?
lowenz
Oldbie
 
Posts: 1138
Joined: 2014-12-20 @ 01:30

Re: indirect sound

Postby UCyborg » 2019-1-14 @ 13:15

lowenz wrote:The registry mod procedure ( https://www.indirectsound.com/registryIssues.html ) is still needed?

I think you'd have to write a background application that uses SetWindowsHookEx to avoid having to do that and throwing DLL in each game's folder.

BTW, it's possible to duplicate needed entries at HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID. These are per-user, don't need fiddling with permissions and probably survive OS upgrades.
UCyborg
Member
 
Posts: 290
Joined: 2015-9-04 @ 11:10

Re: indirect sound

Postby lowenz » 2019-1-14 @ 14:23

"and probably survive OS upgrades"

It's exactly my problem.
lowenz
Oldbie
 
Posts: 1138
Joined: 2014-12-20 @ 01:30

Re: indirect sound

Postby jonpol » 2019-1-14 @ 17:24

lowenz wrote:The registry mod procedure ( https://www.indirectsound.com/registryIssues.html ) is still needed?


Yes, that is still needed for those games that create the DirectSound interface using COM functions. Luckily this is a small percentage; most games just use the DirectSound functions.

UCyborg wrote:I think you'd have to write a background application that uses SetWindowsHookEx to avoid having to do that and throwing DLL in each game's folder.


That might be interesting to play with, although it would be (obviously) more invasive than the way things work now. Maybe one day I'll do some experiments.

UCyborg wrote:BTW, it's possible to duplicate needed entries at HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID. These are per-user, don't need fiddling with permissions and probably survive OS upgrades.


And Windows looks there first and uses any there rather than those at Computer\HKEY_CLASSES_ROOT\CLSID? If so that is a better solution and I should update my instructions...
jonpol
Newbie
 
Posts: 65
Joined: 2013-9-24 @ 19:14

Re: indirect sound

Postby jonpol » 2019-2-09 @ 21:46

jonpol wrote:
lowenz wrote:The registry mod procedure ( https://www.indirectsound.com/registryIssues.html ) is still needed?


UCyborg wrote:BTW, it's possible to duplicate needed entries at HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID. These are per-user, don't need fiddling with permissions and probably survive OS upgrades.


And Windows looks there first and uses any there rather than those at Computer\HKEY_CLASSES_ROOT\CLSID? If so that is a better solution and I should update my instructions...


After some tests and investigation of how HKEY_CLASSES_ROOT\CLSID is derived from HKEY_LOCAL_MACHINE\Software\Classes\CLSID and HKEY_CURRENT_USER\Software\Classes\CLSID it definitely seems better to just change the current user registry. I have updated the registry instructions with the new recommended way. Thanks for the tip, UCyborg! I guess now we wait and see whether Windows updates will leave those registry values alone :#
jonpol
Newbie
 
Posts: 65
Joined: 2013-9-24 @ 19:14

Re: indirect sound

Postby lowenz » 2019-2-13 @ 12:50

0.18 out ;)
lowenz
Oldbie
 
Posts: 1138
Joined: 2014-12-20 @ 01:30

Re: indirect sound

Postby deton24 » 2019-4-30 @ 19:31

Issue report:
Sound disapearing in GTA SA 1.0.

It happens only with Insanity Audio Pack.
https://www.gtainside.com/en/sanandreas ... pack-v2-1/
(reequires modloader)
The same issue is on DSOAL, and Alchemy (fixed with buffers=5).
IndirectSound 0.17 is free of the issue.
deton24
Newbie
 
Posts: 2
Joined: 2018-8-06 @ 17:34

Re: indirect sound

Postby jonpol » 2019-5-08 @ 16:45

deton24 wrote:Issue report:
Sound disapearing in GTA SA 1.0.

It happens only with Insanity Audio Pack.
https://www.gtainside.com/en/sanandreas ... pack-v2-1/
(reequires modloader)
The same issue is on DSOAL, and Alchemy (fixed with buffers=5).
IndirectSound 0.17 is free of the issue.


I've been in email contact with deton24 and it sounds like the problem has gone away and is no longer reproducible. If anyone reading this knows anything more about how to get it to happen feel free to let me know.
jonpol
Newbie
 
Posts: 65
Joined: 2013-9-24 @ 19:14

Previous

Return to Windows

Who is online

Users browsing this forum: No registered users and 0 guests