WineHQ
Bug Tracking Database – Bug 12182

 Bugzilla

 

Last modified: 2015-09-19 17:14:24 CDT  

Multiple games need X3DAudio1_1.dll (Supreme Commander)

Bug 12182 - Multiple games need X3DAudio1_1.dll (Supreme Commander)
Multiple games need X3DAudio1_1.dll (Supreme Commander)
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: directx-dsound
0.9.58.
x86 Linux
: P2 minor
: ---
Assigned To: Mr. Bugs
:
: 15532 (view as bug list)
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2008-03-23 18:43 CDT by haarp
Modified: 2015-09-19 17:14 CDT (History)
22 users (show)

See Also:
Regression SHA1:
Fixed by SHA1:
Distribution: ---
Staged patchset:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description haarp 2008-03-23 18:43:03 CDT
In order to get sound in this game, sample rate must be set to 48000 and a few DLLs are needed. These are:

x3daudio1_0.dll
x3daudio1_1.dll

in order to get the game to start in first place

xactengine2_0.dll
xactengine2_1.dll
xactengine2_2.dll
xactengine2_3.dll
xactengine2_4.dll
xactengine2_5.dll
xactengine2_6.dll

these must be registered using regsvr32 to get sound.
This is not the normal behaviour on Windoze (as long as you have newer DirectX installed) so this should be fixed in Wine.


Also, the Forged Alliance addon for Supreme Commander needs

X3DAudio1_2.dll 

In order to start.

However registering the additional xactengine* which came out between the release of SupCom and its Addon will, in this case, NOT enable sound in the addon.
Comment 1 Lei Zhang 2008-03-24 15:49:21 CDT
For SupCom, does it matter what version your game is patched to? Does the SupCom demo have the same issue?
Comment 2 haarp 2008-03-24 16:07:52 CDT
The demo does work out of the box as far as I heard. But there's only one report stating this, so take it with a grain of salt.

Game version doesn't matter.
Comment 3 Dennis de Vries 2008-04-21 09:48:39 CDT

    
Comment 4 haarp 2008-05-27 15:27:02 CDT
There seem to be some people who get sound working in the addon. I am not one of them. They never seem to tell me what DLLs they're using and how, although I do know that Harware Accel needs to be set to Emulation. Still no deal for me.

So, this bug still exists. xactengine are still needed, and the addon still has no sound at all.
Comment 5 haarp 2008-06-05 19:28:19 CDT
Alright, got sound working in the addon.

These DLLs need to be registered additionally with regsvr32 on top of the original 6 dlls:
xactengine2_7.dll
xactengine2_8.dll
xactengine2_9.dll

The Default Sample Rate needs to be set back to 44100.
SupCom needs 48000 for sound to work, its addon needs 44100. I don't get it...

Well, there are still dlls needed, so this bug is still valid.
Comment 6 Dan Kegel 2008-06-22 06:05:51 CDT
I just fixed the winetricks directx9 verb up
to actually work :-)  

Can you test that and see if I need to add those regsvr calls, too?
Comment 7 haarp 2008-06-22 08:02:44 CDT
I downloaded the newest winetricks from your site and installed the DX9 redistributable with it. However, neither x3daudio*.dll nor xactengine*.dll were installed :/
So there's nothing to register, and SupCom fails to launch because of lack of a3daudio*.dll
Comment 8 haarp 2008-07-05 07:09:00 CDT
Mhh. Interesting. As of 1.1.0 (or maybe some earlier version) Wine does not need to register those DLLS anymore. It suffices to  put those x3daudio1_1.dll and xactengine2_4.dll in system32 (for the original game that is!)

x3d to get it start and xactengine to get Audio. Sample rate still needs to be set to 48000 tho.


I will try the Forged Alliance and see what it needs.
Comment 9 haarp 2008-07-05 07:12:46 CDT
Forged Alliance depends on x3daudio1_2.dll and xactengine2_9.dll for sound. For it, the sample rate needs to be 44100. The dlls for the original game are not needed anymore for FA.
Comment 10 haarp 2008-07-05 07:17:29 CDT
Fixing title to reflect current condition.

btw, if it wasn't clear what I meant: The DLLs don't need to be registered anymore. Just dump the corresponding DLLs in system32 (also set sample rate) and it will work.
Comment 11 Austin English 2008-10-11 17:40:15 CDT
*** Bug 15532 has been marked as a duplicate of this bug. ***
Comment 12 haarp 2008-11-16 14:08:11 CST
Mhh, it broke again. I need to register with regsvr32 the DLLs again to get it to work. No idea if the Wine version is responsible (1.1.8) or if it's just me fooling around with something.
Comment 13 Austin English 2009-05-18 10:47:03 CDT
Is this still an issue in current (1.1.21 or newer) wine?
Comment 14 haarp 2009-05-19 07:01:12 CDT
yes.
Comment 15 haarp 2009-05-30 09:47:08 CDT
Installing 'xact' in newer winetricks does the job of registering all the needed DLLs aswell, nice and easily.
Comment 16 NSLW 2009-06-15 12:21:36 CDT
(In reply to comment #13)
Sound is available without using neither "winetricks xact" nor "winetricks directx9"  in Supreme Commander Forged Alliance (unpatched).
My system is Fedora 11, wine sound driver: ALSA, sound sample rate: 44100 Hz, Wine-1.1.23
Comment 17 Austin English 2010-01-04 12:16:57 CST
This is your friendly reminder that there has been no bug activity for 6
months. Is this still an issue in current (1.1.35 or newer) wine?
Comment 18 Domen Vrankar 2010-06-01 10:26:57 CDT
Yes. It's still an opened issue in Wine 1.2-rc2. I'm experiencing it with Supreme Commander demo. To get the sound working I used winetricks to install xact and then when it still didn't work I set sampling rate to 48000 and then it started playing sound (not shore if installing xact was needed)...
Comment 19 Xavier Vachon 2010-10-25 10:18:54 CDT
Affects Star Wars the force unleashed.

err:module:import_dll Library X3DAudio1_6.dll (which is needed by L"C:\\jeu\\SWTFU.exe") not found
Comment 20 Austin English 2010-11-07 20:59:05 CST
*** Bug 25046 has been marked as a duplicate of this bug. ***
Comment 21 Xavier Vachon 2010-12-06 12:10:27 CST
Affects Dark Sector

err:module:import_dll Library X3DAudio1_2.dll (which is needed by L"C:\\jeu\\DS.exe") not found
Comment 22 Béla Gyebrószki 2011-01-15 14:00:19 CST
Affects King Arthur-The Roleplaying Wargame. 
Although the game doesn't complain about the missing Xaudio libraries on startup, it is completely silent unless I install the xact libraries and set Alsa to 'Emulation' and the sample rate to 44.1 KHz.

Wine-1.3.11-211-gbaeb0d9
Comment 23 Benjamin Hodgetts 2011-08-06 10:08:53 CDT
No sound in Forged Alliance even after having used "winetricks xact" here.
Comment 24 Alexey Loukianov 2011-10-09 05:17:18 CDT
This one also affects idTech5-based games. ATM the "games list" is limited to be only brand-new RAGE title from Bethesda & idSoftware. idTech5 requires XAudio2 version 2.7 which one may install using "winetricks xact_jun2010" or simply by installing full DirectX runtime from June 2010.
Comment 25 Alexey Loukianov 2011-10-14 10:00:57 CDT
Sorry for posting here but it seems that you are the most-targeted auditory I wish to ask to do some testing. I had reported bug #28723 about sound stutter when emulated Windows version is set to Win7 and app produces sound through mmdevapi, either directly or over XAudio2. Thus chances are good that apps in this bug are also affected by bug #28723. Thanks in advance for testing it with latest wine-git.
Comment 26 Adam Bolte 2012-09-01 04:46:24 CDT
Still a problem for Dark Sector with wine 1.5.12.

Needed "winetricks xact" to get past the error:

err:module:import_dll Library X3DAudio1_2.dll (which is needed by L"C:\\Program Files\\Novyi Dysk\\Dark Sector\\DS.exe") not found

Once running, there remains no sound in the game menu and the actual gameplay.
Comment 27 Xavier Vachon 2012-10-29 16:55:37 CDT
*** Bug 26041 has been marked as a duplicate of this bug. ***
Comment 28 Xavier Vachon 2012-10-29 16:56:08 CDT
Affects Borderlands 2.

err:module:import_dll Library X3DAudio1_7.dll (which is needed by L"C:\\jeu\\Binaries\\Win32\\Borderlands2.exe") not found
err:module:import_dll Library XAPOFX1_5.dll (which is needed by L"C:\\jeu\\Binaries\\Win32\\Borderlands2.exe") not found
Comment 29 Xavier Vachon 2012-10-31 18:29:49 CDT
Affects XCom - Enemy unknown

err:module:import_dll Library X3DAudio1_7.dll (which is needed by L"C:\\jeu\\Binaries\\Win32\\XComGame.exe") not found
err:module:import_dll Library XAPOFX1_5.dll (which is needed by L"C:\\jeu\\Binaries\\Win32\\XComGame.exe") not found
Comment 30 Ákos Maróy 2012-11-16 02:43:05 CST
I'm trying to play XCOM, and I'm affected by this issue. is there at least a manual workaround I can perform to have sound?
Comment 31 Austin English 2012-11-16 11:59:28 CST
(In reply to comment #30)
> I'm trying to play XCOM, and I'm affected by this issue. is there at least a
> manual workaround I can perform to have sound?

winetricks xact
Comment 32 Ákos Maróy 2012-11-16 12:16:23 CST
(In reply to comment #31)
> (In reply to comment #30)
> > I'm trying to play XCOM, and I'm affected by this issue. is there at least a
> > manual workaround I can perform to have sound?
> 
> winetricks xact

already did that, but there is still no sound
Comment 33 Dan Kegel 2012-11-16 12:24:24 CST
That's a support question, not a bug tracking question, please ask it
on the forum or the appdb.
Comment 34 Ákos Maróy 2012-11-16 12:35:12 CST
(In reply to comment #33)
> That's a support question, not a bug tracking question, please ask it
> on the forum or the appdb.

how is a non-working feature not a bug?
Comment 35 Dan Kegel 2012-11-16 12:40:41 CST
The non-working feature is a bug.

Helping *you* to get it working on *your* machine anyway is a support question
beyond the scope of bugzilla.
Comment 36 Ákos Maróy 2012-11-16 12:44:20 CST
(In reply to comment #35)
> The non-working feature is a bug.

that's what I thought. is this bug fixed?

> Helping *you* to get it working on *your* machine anyway is a support question
> beyond the scope of bugzilla.

well, the bug being fixed and the feature working are two events that occur exactly at the same time.
Comment 37 Michal Illich 2012-11-17 05:58:09 CST
I also confirm that:

winetricks xact

doesn't solve the issue: still no sound.

(installed in clean wine prefix, added all recommended winetricks, sound works in winecfg and other games; kubuntu 12.04, fully up-to-date, wine 1.5.17)
Comment 38 Alexey Loukianov 2012-11-19 01:36:37 CST
(In reply to comment #36)
> > The non-working feature is a bug.
> that's what I thought. is this bug fixed?
> 

Nope - and you know it as that's the reason you came here seeking for support.


> > Helping *you* to get it working on *your* machine anyway is a support question
> > beyond the scope of bugzilla.
> 
> well, the bug being fixed and the feature working are two events that occur
> exactly at the same time.

You would get sound working in your favourite app as soon as Wine would implement required XACT-related libs. But I bet this is not what you're seeking for right now as implementing XACT in Wine is not something that is going to happen in a next few days. Dan is precisely correct on support questions being outside the scope of bugzilla but as there are a lot of other people suffering from this problem and their tendency to seek for help in bugzilla here is what to try to workaround this bug:

# winetricks xact_jun2010

If above won't help - manually download and unpack latest DirectX runtime redist  from MS site, seek for files named similar to DLLs the game fails to find and unpack required libraries from these files using cabextract tool. Keep in mind that most likely you should own a Windows license to be safe of a legal side doing like this.
Comment 39 Ákos Maróy 2012-11-19 02:55:09 CST
you guys are, well, quite arrogant.

anyway, for some reason the sound works now. how I got it to work is that I used a 32-bit manually compiled version of wine to install XCOM & related dependencies using winetricks, including xact. (version wine-1.5.13-402-gcd9451c to be precise). interestingly, this wine wouldn't run XCOM itself, but the 64 bit wine that comes with ubuntu 12.10 (wine-1.5.16) runs it with sound afterwards.

I'm not sure how the above wizardry made it work though.
Comment 40 3draven 2013-01-09 21:49:58 CST
Confirm. XCOM start, but no sound. wine 1.5.20 and 1.5.21.
Comment 41 jitsumi 2013-03-03 10:15:57 CST
Also confirm it for XCom with wine 1.5.25
Comment 42 jitsumi 2013-03-03 10:36:00 CST
Did someone start to implement xact lib by the way?


I may help...
Comment 43 DenTaKu 2013-06-20 16:39:52 CDT
Same problem with "Giana Sisters - Twisted Dreams":

err:module:import_dll Library X3DAudio1_7.dll (which is need by ".../GSGameExe_DX9.exe") not found

BUT: the exact same installation on a computer with nVidia graphics works! No idea, what graphics has to do with audio, but I just want to mention. The computers both have AMD CPUs with Ubuntu 12.04 64 Bit (and standard Unity desktop). One has a nVidia Graphics card (GT430) and the other has integrated graphics (AMD APU). Both use integrated standard Audio.
Comment 44 Andrey Gusev 2013-06-22 06:01:17 CDT
Wine 1.6-rc3
Splinter Cell: Conviction (1.04) also need X3DAudio1_6.dll
Comment 45 Andrey Gusev 2013-06-23 07:03:03 CDT
Wine 1.6-rc3
Metro: Last Light need XAudio2_7.dll
Comment 46 Andrey Gusev 2013-08-30 11:54:21 CDT
Wine 1.7.0
F.E.A.R. 2: Project Origin demo need X3DAudio1_5.dll
Comment 47 Austin English 2013-12-02 15:17:00 CST
*** Bug 26565 has been marked as a duplicate of this bug. ***
Comment 48 Andrey Gusev 2014-03-13 04:16:54 CDT
*** Bug 34358 has been marked as a duplicate of this bug. ***
Comment 49 Andrey Gusev 2014-03-18 09:17:44 CDT
Call of Juarez: Bound in Blood demo is also affected.
Comment 50 Bruno Jesus 2014-04-21 09:52:37 CDT
*** Bug 36029 has been marked as a duplicate of this bug. ***
Comment 51 Anastasius Focht 2014-07-03 17:23:26 CDT
Hello folks,

please avoid adding more dupes here and rather separate them into stub dlls bugs.
This bug has become a "meta" bug which should be avoided.

Regards
Comment 52 Anastasius Focht 2015-01-25 07:13:57 CST
Hello folks,

as already indicated in my last comment, having this meta-meta bug is not useful.

I'm going to split this up, targeting *one* component.

bug 24545 -> X3DAudio1_6.dll 
bug 36844 -> X3DAudio1_7.dll

bug 26808 -> XAudio2_7.dll
bug 26833 -> XAudio2_4.dll
bug 36847 -> XAudio2_3.dll

I'll probably also un-dupe bugs that need XAudio(2) component not yet covered in Bugzilla.

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/R.G. Mechanics/Supreme Commander/bin

$ wine ./SupremeCommander.exe 
err:module:import_dll Library X3DAudio1_1.dll (which is needed by L"C:\\Program Files\\R.G. Mechanics\\Supreme Commander\\bin\\MohoEngine.dll") not found
err:module:import_dll Library MohoEngine.dll (which is needed by L"C:\\Program Files\\R.G. Mechanics\\Supreme Commander\\bin\\SupremeCommander.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\Program Files\\R.G. Mechanics\\Supreme Commander\\bin\\SupremeCommander.exe" failed, status c0000135
--- snip ---

Dump of relevant import descriptor from 'MohoEngine.dll':

--- snip ---
...
   21. ImageImportDescriptor:
    OriginalFirstThunk:  0x007F4BC8
    TimeDateStamp:       0x00000000  (GMT: Thu Jan 01 00:00:00 1970)
    ForwarderChain:      0x00000000
    Name:                0x008091AE  ("X3DAudio1_1.dll")
    FirstThunk:          0x005B8AC8

    Ordinal/Hint API name
    ------------ ---------------------------------------
    0x0000       "_X3DAudioCalculate@20"
    0x0001       "_X3DAudioInitialize@12"
--- snip ---

$ wine --version
wine-1.7.34-159-g7b45103

Regards
Comment 53 Austin English 2015-02-19 17:41:48 CST
https://source.winehq.org/patches/data/109243
Comment 54 Austin English 2015-02-20 12:17:03 CST
A stub xd3daudio1_1.dll has been committed:
http://source.winehq.org/git/wine.git/commitdiff/32c8b79b92f9a9cd2e2a961e8d25b24ba5ccb810

subsequent issues should be in new bugs (after checking for duplicates).
Comment 55 Alexandre Julliard 2015-03-06 07:30:36 CST
Closing bugs fixed in 1.7.38.


Hosted By CodeWeavers