Hi,
Here attached is a .zip archive containing a test .snd file (along with .ttp player for it) which gives cracks in the sound on Hatari when all 3 voices are played along DMA mono beat.
It only occurs when the bassdrum is playing.
You can hear it at 17 seconds when playing the .snd file.
I also included a recording (as .ogg) from Hatari where you can also hear this problem.
Maybe it only occurs on my Hatari setup ? I cannot test it on another computer here.
So it would be nice if someone else could check this.
Cracks in the sound (YM+DMA)
Moderators: Moderator Team, Hatari Development Team
-
- Atari God
- Posts: 1223
- Joined: Wed Nov 20, 2002 11:22 pm
- Location: France
Cracks in the sound (YM+DMA)
You do not have the required permissions to view the files attached to this post.
-= Personal pages hub = YM-Rockerz =-
-
- Atari Super Hero
- Posts: 515
- Joined: Sat Jan 10, 2009 5:40 am
Re: Cracks in the sound (YM+DMA)
I think the LMC1992 volume or bass or treble register is turned up too high and causing distortion.
This can happen on a real STe too. Real STe distortion is caused by clipping; Hatari distortion is
caused by overflow because saturation mathematics is not used. Hatari should distort at about the
same point as a real STe, but may sound different.
This can happen on a real STe too. Real STe distortion is caused by clipping; Hatari distortion is
caused by overflow because saturation mathematics is not used. Hatari should distort at about the
same point as a real STe, but may sound different.
-
- Atari God
- Posts: 1223
- Joined: Wed Nov 20, 2002 11:22 pm
- Location: France
Re: Cracks in the sound (YM+DMA)
Actually, the test .snd file i provided sounds correct my STe.
Sorry that i forgot to mention that.
Sorry that i forgot to mention that.
-= Personal pages hub = YM-Rockerz =-
-
- Atari Super Hero
- Posts: 515
- Joined: Sat Jan 10, 2009 5:40 am
Re: Cracks in the sound (YM+DMA)
EDIT:
I found and solved the problem. YM + DMA sound samples exceeded 16 bits at one point in the code.
I also made a patch to do clipping instead of overflow for LMC1992 distortion.
-Following experiment cancelled.
Try this experiment:
Turn down the volume to see if the noise goes away on Hatari.
Maybe turn up volume on Real STe to find where it gets worse.
I'll think about the results, if you can tell me some levels.
I found and solved the problem. YM + DMA sound samples exceeded 16 bits at one point in the code.
I also made a patch to do clipping instead of overflow for LMC1992 distortion.
-Following experiment cancelled.
Try this experiment:
Turn down the volume to see if the noise goes away on Hatari.
Maybe turn up volume on Real STe to find where it gets worse.
I'll think about the results, if you can tell me some levels.
-
- Atari God
- Posts: 1223
- Joined: Wed Nov 20, 2002 11:22 pm
- Location: France
Re: Cracks in the sound (YM+DMA)
Ah that's marvellous. Is there any chance i could get a windows (32bits xp) build binary with this patch somewhere?
-= Personal pages hub = YM-Rockerz =-
-
- Atari Super Hero
- Posts: 515
- Joined: Sat Jan 10, 2009 5:40 am
Re: Cracks in the sound (YM+DMA)
Check this link to see when the patch is applied.dma wrote:Ah that's marvellous. Is there any chance i could get a windows (32bits xp) build binary with this patch somewhere?
http://hg.tuxfamily.org/mercurialroot/hatari/hatari
Download from CHS' automated Windows Hatari build link
the next day (first link on page).
http://hatari.tuxfamily.org/links.html
-
- Atari God
- Posts: 1223
- Joined: Wed Nov 20, 2002 11:22 pm
- Location: France
Re: Cracks in the sound (YM+DMA)
Oh i didn't knew about the automated build, great!
I can't wait for the patch (literally, as it blocks my "out of the house" work on some tunes
).
Thanks again for such a fast job.
I can't wait for the patch (literally, as it blocks my "out of the house" work on some tunes

Thanks again for such a fast job.
-= Personal pages hub = YM-Rockerz =-
-
- Atari God
- Posts: 1558
- Joined: Sat Dec 01, 2007 7:38 pm
- Location: France
Re: Cracks in the sound (YM+DMA)
Hello,
I applied the ym+dma patch made by David to the dev version, so it should appear soon in the windows' daily builds.
Nicolas
I applied the ym+dma patch made by David to the dev version, so it should appear soon in the windows' daily builds.
Nicolas
-
- Atari God
- Posts: 1223
- Joined: Wed Nov 20, 2002 11:22 pm
- Location: France
Re: Cracks in the sound (YM+DMA)
Ah that's great, thanks, no more problem on my track(s).
-= Personal pages hub = YM-Rockerz =-