Sound delay in DOTT and Fate of Atlantis

Subforum for discussion and help with ScummVM's PocketPC/HandheldPC port

Moderator: ScummVM Team

TheVaultDweller
Posts: 7
Joined: Sun Feb 03, 2008 8:19 pm

Sound delay in DOTT and Fate of Atlantis

Post by TheVaultDweller »

I've gotten DOTT and FOA to run just fine on my AT&T Tilt (HTC Kaiser) using the 0.11.0 release, but there is a significant delay in the sound. I would say the sound effects and speech come in almost a full second after the animation for it. Anybody know why this is?
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

Are you using compressed sound effects and voices? If yes, try running the game with uncompressed sound, perhaps your device is too slow to decode them on time. If that's the case, try recompressing the sounds to another format (e.g. OGG if you have compressed them using MP3 compression or vice versa)
TheVaultDweller
Posts: 7
Joined: Sun Feb 03, 2008 8:19 pm

Post by TheVaultDweller »

No, the files aren't compressed.
User avatar
knakos
ScummVM Porter
Posts: 423
Joined: Wed Nov 02, 2005 2:35 pm
Location: Athens, Greece

Post by knakos »

Well, in small devices, to have uncompressed sounds is not always a good idea: Your storage card may not be able to provide the rate of X kbps that the uncompressed stream requires.

So if the same datafiles work on a desktop version of scummvm with no observaqble delay, you may want to try compressing the datafiles. This puts more strain on the CPU but alleviates the storage card throughput requirement.
TheVaultDweller
Posts: 7
Joined: Sun Feb 03, 2008 8:19 pm

Post by TheVaultDweller »

I compressed the monster.sou file for DOTT down to 1.6 megs using the lame encoder, and I still have the exact same delay. Any other ideas?
TheVaultDweller
Posts: 7
Joined: Sun Feb 03, 2008 8:19 pm

Post by TheVaultDweller »

Anybody?
Keelhaul
Posts: 4
Joined: Mon Jan 07, 2008 1:22 am
Location: Germany

Post by Keelhaul »

Compressed down to 1.6 MB? :shock:
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

I think he's referring to the floppy disk version of DOTT, this might be doable with that version
TheVaultDweller
Posts: 7
Joined: Sun Feb 03, 2008 8:19 pm

Post by TheVaultDweller »

Yes, it is the floppy version, which works just fine on my desktop (full voice, etc).
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

TheVaultDweller wrote:Yes, it is the floppy version, which works just fine on my desktop (full voice, etc).
By "full voice" I assume you're talking about the game's introduction, as the game itself doesn't have voice in the floppy version
TheVaultDweller
Posts: 7
Joined: Sun Feb 03, 2008 8:19 pm

Post by TheVaultDweller »

no, I mean full voice. Maybe it's not the floppy version, but it's 1.6 megs and I've got voice all the way through the game. Everything syncs perfectly on the desktop, but not on my Tilt
Keelhaul
Posts: 4
Joined: Mon Jan 07, 2008 1:22 am
Location: Germany

Post by Keelhaul »

But the original monster.sou is 256MB! There is no codec that can compress it that much.
TheVaultDweller
Posts: 7
Joined: Sun Feb 03, 2008 8:19 pm

Post by TheVaultDweller »

ok, sorry, I was testing the wrong one. I don't have full voice in the floppy version. The original monster.sou was 3.7 megs and I compressed it to 1.6, but there's still a delay. I'm trying to find a CD version of the monster.sou so I can try compressing that one. BUT, since I get a delay with 3.7 and 1.6 both, it seems that compression isn't the issue.
Keelhaul
Posts: 4
Joined: Mon Jan 07, 2008 1:22 am
Location: Germany

Post by Keelhaul »

Could you post the exact command line you used to compress it?
japher
Posts: 5
Joined: Wed Mar 05, 2008 8:57 pm

Post by japher »

I've got this exact same problem with Sam n Max & DOTT. In both the sound lags behind the graphics.

I've tried with both uncompressed SOU (256Mb) and compressed SO3 (74Mb) so I don't think this is anything to do with transfer rate from the SD card. I've also tried setting sound_thread_priority=0 in the scummvm.ini file for these games (as mentioned in the WinCE readme) but this also makes no difference.

The funny thing is, the sound isn't stuttering or slowing at any time, and there's no slow down in the graphics. It doesn't seem as if the app is too intensive for the phone or anything like that, the sound is just consistently and perfectly out of synch by half a second (ish!).

My phone is an HTC TyTN II (Kaiser) running WM6 (and scummvm 0.11.1).
Post Reply