English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 20 January 2008, 20:08   #1
Zósite K.S.
 
Posts: n/a
Sound distortions in Dungeon Master II

Since in the end it seems it wasn't a WHDLoad problem nor a problem with the game itself (it worked in past WinUAE versions) I'm bringing this problem here just in case. My apologies in advance if this one doesn't belong here though...

The original thread is here: http://eab.abime.net/showthread.php?t=33453
 
Old 20 January 2008, 20:11   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
ECS or AGA? If AGA -> not much interest as usual. ECS with proper configuration most likely works fine.
Toni Wilen is offline  
Old 20 January 2008, 20:21   #3
Zósite K.S.
 
Posts: n/a
AGA of course. DM2 doesn't work in ECS and it needs to be installed in HD to play.
 
Old 20 January 2008, 20:41   #4
viddi
Moderator
 
viddi's Avatar
 
Join Date: Apr 2006
Location: Germany
Age: 44
Posts: 4,007
Quote:
Originally Posted by Zósite K.S. View Post
AGA of course. DM2 doesn't work in ECS and it needs to be installed in HD to play.
It´s not AGA. E.g. it works on an A2000 with 2 MB ram.
viddi is offline  
Old 20 January 2008, 20:52   #5
Retro-Nerd
Missile Command Champion
 
Retro-Nerd's Avatar
 
Join Date: Aug 2005
Location: Germany
Age: 52
Posts: 12,436
There are really two games versions? It's a bit confusing. I've an English manual for the AGA version, Planetemu has an AGA version.

The SPS dump is OCS/ECS, according to HOL/SPS. KG named his WHDLoad/SPS installed game with "AGA", because the readme says "AGA version supported".
Retro-Nerd is offline  
Old 20 January 2008, 20:57   #6
Zósite K.S.
 
Posts: n/a
Yeah, it seems to work with ECS in standard installation without WHDLoad. But it doesn't matter... the standard installation with ECS chip has the same distortion problem.
 
Old 20 January 2008, 21:11   #7
viddi
Moderator
 
viddi's Avatar
 
Join Date: Apr 2006
Location: Germany
Age: 44
Posts: 4,007
As far as I know there is only one version out there.
It is labeled AGA but works on ECS machines.

Primal Rage was labeled as A1200 only as well just because it needs 2 MB!
viddi is offline  
Old 20 January 2008, 21:27   #8
Retro-Nerd
Missile Command Champion
 
Retro-Nerd's Avatar
 
Join Date: Aug 2005
Location: Germany
Age: 52
Posts: 12,436
It seems so: A1200/AGA but Workbench 1.2 or higher.

Retro-Nerd is offline  
Old 20 January 2008, 22:22   #9
glue
Banned
 
glue's Avatar
 
Join Date: Dec 2006
Location: https://t.me/pump_upp
Posts: 76
Send a message via ICQ to glue Send a message via AIM to glue Send a message via Yahoo to glue
buahahaaha A1200 with Workbench 1.2 really good config to operate with hard disk
glue is offline  
Old 21 January 2008, 10:49   #10
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
I've read that this game requires AGA only because it needs 2MB of chipmem.
But it certainly doesn't use 256 colors.

If you're experiencing sound problems then it may be because the game runs out of memory (I even had random crashes on 2MB).

But the distortion problem makes me think that you've got one or several musics files that aren't ok, and I suggest you reinstall the game without using the buggy unlzx that's provided with the original package.
meynaf is offline  
Old 21 January 2008, 12:35   #11
Zósite K.S.
 
Posts: n/a
Ummm... thanks for your suggestions Meynaf, but I've already tried several high memory configurations.

Besides, it cannot come from a damaged music file because the game works perfect with older WinUAE releases as I already said.
 
Old 21 January 2008, 13:21   #12
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Then I don't know. I've never had this problem. Then again, I've never tried it on winuae
(the game works fine on my 68030, I finished it several times)
meynaf is offline  
Old 21 January 2008, 14:53   #13
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
My crystal balls says the "problem" is the usual: too fast chip ram and/or too fast cpu causing some stupid cpu delay loops to run too quickly. I consider these kind of programs (68020+ only) broken and I only "waste" time checking them if I feel interested enough..
Toni Wilen is offline  
Old 21 January 2008, 15:05   #14
Zósite K.S.
 
Posts: n/a
Ok, ok... If Toni says so

Shall it be written, shall it be done. I just wonder why it worked not so long ago and not now.

At least I tried.
 
Old 21 January 2008, 15:15   #15
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Quote:
Originally Posted by Toni Wilen View Post
My crystal balls says the "problem" is the usual: too fast chip ram and/or too fast cpu causing some stupid cpu delay loops to run too quickly. I consider these kind of programs (68020+ only) broken and I only "waste" time checking them if I feel interested enough..
It is true that DM2 sometimes miss notes even on a 030, but it's not enough to call it distortion...
meynaf is offline  
Old 21 January 2008, 15:22   #16
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
(I was interested enough after all..) It worked in old version because audio emulation was broken in other programs. (Maupiti Island for example) but now DM2 (which has quite stupid audio code..) expects something that would not be compatible with MI.. Something is missing..

This is not CPU timing problem, at least.
Toni Wilen is offline  
Old 21 January 2008, 15:33   #17
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Just curious : what does DM2 expect ? (with all the gruesome details, of course )
meynaf is offline  
Old 21 January 2008, 15:50   #18
killergorilla
Lesser Talent
 
killergorilla's Avatar
 
Join Date: Jan 2003
Location: UK
Age: 42
Posts: 7,957
Quote:
Originally Posted by Retro-Nerd View Post
There are really two games versions? It's a bit confusing. I've an English manual for the AGA version, Planetemu has an AGA version.

The SPS dump is OCS/ECS, according to HOL/SPS. KG named his WHDLoad/SPS installed game with "AGA", because the readme says "AGA version supported".
Nope, I labelled it AGA because when you put it in ECS the whdload version says "This game needs AGA to run"

I started a thread on it a while back:

http://eab.abime.net/showthread.php?...eon+master+aga
killergorilla is offline  
Old 21 January 2008, 16:43   #19
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Quote:
Originally Posted by meynaf View Post
Just curious : what does DM2 expect ? (with all the gruesome details, of course )
DM2: Audio interrupt request cleared, writes to AUDxDAT, start DMA. (DMA should start normally instead of getting in "PIO"-mode audio)

CD32 boot tune: Audio interrupt request cleared, writes first sample to AUDxDAT. Waits for "PIO"-mode interrupt and then starts DMA mode. (Why does it do it this way?)

Maupiti Island speech: Audio interrupt request cleared, writes to AUDxDAT, waits for interrupt, restart until speech ends.

There may be delay between transition from state 0 to state 2 when starting "PIO"-mode audio (HRM says "transfer to main loop occurs immediately after data is written by processer") but I don't see why or how because it would cause other issues and in hardware state transitions checks normally happen every clock cycle "automatically".

Some condition must be missing.. (I have one weird idea which needs testing..)

ADDED: possible missing condition: in "PIO"-mode audio AUDLEN and AUDLC are also copied to backup registers. (Perhaps this condition is "hard-coded" to "set interrupt" condition in hardware? This isn't really described in audio state diagram) This change will be in next beta (if I don't find any programs that fail..)

Last edited by Toni Wilen; 21 January 2008 at 16:55.
Toni Wilen is offline  
Old 21 January 2008, 17:03   #20
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Quote:
Originally Posted by Toni Wilen View Post
DM2: Audio interrupt request cleared, writes to AUDxDAT, start DMA. (DMA should start normally instead of getting in "PIO"-mode audio)
Doesn't look very useful...

But you can just kill the "PIO" audio mode whenever DMA is on and you're done. DMA will always take over and they can't be mixed (not on the same channel, that is) - just my "2 cents" suggestion.

Quote:
Originally Posted by Toni Wilen View Post
CD32 boot tune: Audio interrupt request cleared, writes first sample to AUDxDAT. Waits for "PIO"-mode interrupt and then starts DMA mode. (Why does it do it this way?)
It is done this way because the author did not want the tune to play correctly on an emulator
Errrh.. seriously, doing so is completely useless IMHO. However, of course, it should be harmless.

Quote:
Originally Posted by Toni Wilen View Post
Maupiti Island speech: Audio interrupt request cleared, writes to AUDxDAT, waits for interrupt, restart until speech ends.
The normal way of playing a sound with the cpu...

Quote:
Originally Posted by Toni Wilen View Post
There may be delay between transition from state 0 to state 2 when starting "PIO"-mode audio (HRM says "transfer to main loop occurs immediately after data is written by processer") but I don't see why or how because it would cause other issues and in hardware state transitions checks normally happen every clock cycle "automatically".

Some condition must be missing.. (I have one weird idea which needs testing..)
Programming audio is a pain, so I can't imagine what emulating the hardware accurately must be

Anyway, do programs really depend on audio timings ? Would it add some trouble if you allowed stop-then-restart the audio dma regardless of the time between stop and restart ? (and setting the repeat/replen values after the dma has started)
meynaf is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom dungeon for dungeon master 1 meynaf project.Amiga Game Factory 73 17 October 2015 11:50
Dungeon Master alexh HOL data problems 1 09 April 2007 17:17
Dungeon Master komunita support.Games 7 25 August 2006 09:32
Dungeon Master Kid Dungeon rodi request.Old Rare Games 0 23 June 2005 19:31
Sound-Looping problems with Dungeon Master Sermon support.Games 0 30 December 2001 23:40

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:41.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09709 seconds with 13 queries