Music Freeze Hook
Moderator: JeremyaFr
Music Freeze Hook
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
I've created a hook (xwa_hook_music) that fixes the music freeze.
It replaces the DirectSound API with the XAudio2 API to play the music.
With this hook, it is no longer needed to set the process affinity mask to a single core.
Feel free to say if you have the music freeze again (even with this hook) or if you no longer encounter the music freeze.
You can download the hook with the XwaHooksSetup tool.
I've created a hook (xwa_hook_music) that fixes the music freeze.
It replaces the DirectSound API with the XAudio2 API to play the music.
With this hook, it is no longer needed to set the process affinity mask to a single core.
Feel free to say if you have the music freeze again (even with this hook) or if you no longer encounter the music freeze.
You can download the hook with the XwaHooksSetup tool.
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death
Current Holder of the Frying Pan of Death
-
- Posts: 39
- Joined: Thu Jun 20, 2019 3:28 am
When I run the hooks setup app, I am not getting the new music hook? Any reason for this that you can think of?
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
You have to delete the "Hooks" directory, as written in the XwaHooksSetup's readme file.
Or extract XwaHooksSetup.zip to a new directory and run XwaHooksSetup.exe
You have to delete the "Hooks" directory, as written in the XwaHooksSetup's readme file.
Or extract XwaHooksSetup.zip to a new directory and run XwaHooksSetup.exe
- DarHan
- Posts: 324
- Joined: Mon Dec 05, 2005 12:01 am
- Contact:
Huh. I just experienced the music freeze bug despite having installed the hook. It happened after a few minutes of playing (Battle 4, mission 6—more precisely, shortly after the ISD Avenger first started deploying fighters).
“Red Four, nothing’s gone wrong yet.”
— Hobbie Klivian
— Hobbie Klivian
- BenKenobi
- Posts: 94
- Joined: Wed Mar 18, 2020 12:30 pm
Hi.
It happened to me too unfortunately. Just after entering hyperspace on Battle 1 Mission 4.
Need more info? Just let me know.
It happened to me too unfortunately. Just after entering hyperspace on Battle 1 Mission 4.
Need more info? Just let me know.
- Ace Antilles
- Posts: 7705
- Joined: Sat Jan 22, 2000 12:01 am
- Contact:
Just to confirm please: You both have Hook_Music.dll and Xaudio2_9redist.dll in your main XWA folder?
Also in DDraw.cfg that this file has a setting of 0 in this section
Code: Select all
; ProcessAffinityCore = int value
; When set to 0, the process affinity is not changed
; The value indicates the core you want the process to run on
ProcessAffinityCore = 0
- DarHan
- Posts: 324
- Joined: Mon Dec 05, 2005 12:01 am
- Contact:
Yup, both files are present (XWA won’t even start if Xaudio2_9redist.dll is missing), and I double-checked the ProcessAffinityCore setting.
“Red Four, nothing’s gone wrong yet.”
— Hobbie Klivian
— Hobbie Klivian
- BenKenobi
- Posts: 94
- Joined: Wed Mar 18, 2020 12:30 pm
No, it seems the Xaudio2_9redist.dll was missing, I had no problem launching XWA without it however. Double checked; the ProcessAffinityCore is set to 0Ace Antilles wrote: ↑Wed Jun 17, 2020 2:44 pmJust to confirm please: You both have Hook_Music.dll and Xaudio2_9redist.dll in your main XWA folder?
I will check it again and report back.
- Ace Antilles
- Posts: 7705
- Joined: Sat Jan 22, 2000 12:01 am
- Contact:
It should be in your Setup folder that the Hook downloader extracted. If it's not then you don't have the latest updates.BenKenobi wrote: ↑Wed Jun 17, 2020 6:08 pmNo, it seems the Xaudio2_9redist.dll was missing, I had no problem launching XWA without it however. Double checked; the ProcessAffinityCore is set to 0Ace Antilles wrote: ↑Wed Jun 17, 2020 2:44 pmJust to confirm please: You both have Hook_Music.dll and Xaudio2_9redist.dll in your main XWA folder?
I will check it again and report back.
- BenKenobi
- Posts: 94
- Joined: Wed Mar 18, 2020 12:30 pm
Update: Haven’t had a music crash in over 2 weeks so it is fixed for me.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the music hook.
I've fixed a conflict with the effects ddraw dll.
Hello,
I've updated the music hook.
I've fixed a conflict with the effects ddraw dll.
-
- Posts: 30
- Joined: Wed Mar 17, 2021 1:47 pm
Hello,
I don't know if I'm the only one but I'm still experiencing music freezes from time to time. It seems to be random. It can happen during tour missions or skirmishes. It also happened once while I was in the flight simulator menu, setting up a skirmish.
Sometimes it freezes after 10 minutes of play, sometimes I can play 1h without issue.
I'm playing on a Steam version with Mega Patch and Update 2.1. I also made sure I have the latest Music Hook.
I don't know if I'm the only one but I'm still experiencing music freezes from time to time. It seems to be random. It can happen during tour missions or skirmishes. It also happened once while I was in the flight simulator menu, setting up a skirmish.
Sometimes it freezes after 10 minutes of play, sometimes I can play 1h without issue.
I'm playing on a Steam version with Mega Patch and Update 2.1. I also made sure I have the latest Music Hook.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the music hook.
I've fixed a bug where the xwa exe is still alive when the game ends and a custom movie was played.
Hello,
I've updated the music hook.
I've fixed a bug where the xwa exe is still alive when the game ends and a custom movie was played.