Wine Battlefield 1942 Sound
Wine Battlefield 1942 Sound
Can someone explain Jeff's hack, I really want to play BF1942 with sound fixed,especially with kdog's comment 15. Thanks
http://bugs.winehq.org/show_bug.cgi?id=11499#c15
Thank You, so far both Fedora and Ubuntu forums are mute
http://bugs.winehq.org/show_bug.cgi?id=11499#c15
Thank You, so far both Fedora and Ubuntu forums are mute
Re: Wine Battlefield 1942 Sound
Most likely this (watchout for wrapped lines):duke11235 wrote:Can someone explain Jeff's hack, I really want to play BF1942 with sound fixed,especially with kdog's comment 15.
Code: Select all
diff --git a/dlls/dsound/sound3d.c b/dlls/dsound/sound3d.c
index 252c763..afef379 100644
--- a/dlls/dsound/sound3d.c
+++ b/dlls/dsound/sound3d.c
@@ -210,7 +210,7 @@ void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb)
flDistance = dsb->ds3db_ds3db.flMinDistance;
/* attenuation proportional to the distance squared, converted to millibels as in lVolume*/
- lVolume -= log10(flDistance/dsb->ds3db_ds3db.flMinDistance * flDistance/dsb->ds3db_ds3db.flMinDistance)*1000;
+ lVolume += 1000 * log10(1.0/flDistance);
TRACE("dist. att: Distance = %f, MinDistance = %f => adjusting volume %d to %f\n", flDistance, dsb->ds3db_ds3db.flMinDistance, dsb->ds3db_lVolume, lVolume);
/* conning */
Response
So, what? Is it a standard copy and paste in to the terminal idea? IF it's a command, do I need to undo it for certan things? Which file do I need to edit and add or replace code with this. Thanks for all help. You have been my only help so far, both ubuntu and fedora forums are still unresponsive
Re: Response
http://wiki.winehq.org/Patchingduke11235 wrote:So, what?
If that doesn't make sense to you, then you should wait until this is fixed upstream (in Wine itself).
Re: Thank You
Pretty much, or do that one line change manually.duke11235 wrote:So all I have to do is save that file as .diff and follow the instructions.
No idea, that patch rather looks like a hack. And hacks are not accepted into Wine.duke11235 wrote:How long do you think before it is patched upstream?