Game freezes for 1 or 2 sec upon music track change

Got a problem with TTDPatch? Get help here.

Moderator: TTDPatch Moderators

Post Reply
brutt01d
Engineer
Engineer
Posts: 27
Joined: 23 Jun 2005 10:58
Location: Crazy Iwan in Deutschland

Game freezes for 1 or 2 sec upon music track change

Post by brutt01d » 23 Jun 2005 11:15

Subject.

I suppose it's a genuine bug in TTD patch. Cause in open TTD there's no such thingy.

User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13190
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post by Hyronymus » 23 Jun 2005 11:19

Could just be a genuine TTD bug, have you tried running TTD without the patch to confirm it? Or perhaps your soundcard settings are off.

User avatar
Rob
Tycoon
Tycoon
Posts: 4357
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post by Rob » 23 Jun 2005 11:20

Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around

brutt01d
Engineer
Engineer
Posts: 27
Joined: 23 Jun 2005 10:58
Location: Crazy Iwan in Deutschland

Post by brutt01d » 23 Jun 2005 12:18

Rob wrote:FAQ !
I am really sorry! :(

This thread has to be deleted.

User avatar
orudge
Administrator
Administrator
Posts: 24026
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge » 23 Jun 2005 18:48

TTD uses the old Windows MCI interface, which causes a delay with the MIDI functions. OpenTTD uses DirectMusic, but even the Win32/MCI MIDI driver is run in a separate thread, so it doesn't disrupt the gameplay as such.

User avatar
nicfer
Director
Director
Posts: 529
Joined: 03 May 2005 20:50
Location: Somewhere in a country called Argentina

Post by nicfer » 05 Jul 2005 14:23

Thanks for the help, I have the same problem (until now :P).
Sorry for my english I am argentinian
TTO don't crashes in Windows XP; XP crashes TTO

Formerly known as UnderBuilder.

MyMiniCity

User avatar
j7n
Engineer
Engineer
Posts: 44
Joined: 02 Jun 2005 22:46
Contact:

Re: Game freezes for 1 or 2 sec upon music track change

Post by j7n » 19 Mar 2014 22:11

This old problem has been irritating me for many years now. Recently I stumbled upon a post by Avery Lee / Phaeron the author of VirtualDub, who has traced down the issue in mciseq.dll driver, which is set to loop doing nothing for some kind of synchronization. The problem can be fixed by changing the sleep time from 4 to 0.

In mciseq.dll, look for these bytes

68 __ __ __ __ FF 15 __ __ __ __ 6A 04 __ __ __ __ __ __ C3

and change them to

68 __ __ __ __ FF 15 __ __ __ __ 6A 00 __ __ __ __ __ __ C3

Here I have pre-patched the file for a few operating system versions (XP SP1, XP SP2, XP SP3, Server 2003 SP2, Seven SP1). These are all 32-bit systems; I do not have a 64-bit system to test.

MCI_MIDI_Without_Pause_WinXP.rar

To replace a Windows system file, System File Protection must be defeated first, as usual.

With the patch applied, the Jazz Jukebox player now responds quickly with musicdriver = "win32", as well as in TTD/Windows. I can skip over many tracks and it will still play the song which is showing on the display.

User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1804
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Re: Game freezes for 1 or 2 sec upon music track change

Post by Lakie » 20 Mar 2014 15:42

Is there any changes we could within TTDPatch which could achieve similar results?

~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."

User avatar
j7n
Engineer
Engineer
Posts: 44
Joined: 02 Jun 2005 22:46
Contact:

Re: Game freezes for 1 or 2 sec upon music track change

Post by j7n » 21 Mar 2014 15:24

Not any that I know of, apart from not using the MCI driver. My understanding of programming is very limited.

Post Reply

Return to “Problems with TTDPatch”

Who is online

Users browsing this forum: No registered users and 1 guest