Re: [hatari-devel] STe DMA sound |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] STe DMA sound
- From: Vincent Rivière <vincent.riviere@xxxxxxxxxxx>
- Date: Sat, 14 Apr 2018 18:56:01 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xJsjM2pl7d9T4tyTAe+cvEN80vQUvplVBaRKS2OF9vA=; b=vcXW9XbNcd6GI6b7r2ySmsuMTs/9GrNt3UeAPpep4c2mCqDiFN6Y0csMEPgjI9ZQyJ qVwFcFUnsyTHogMcbKSOvwyqbJj0ufgzm4JH2hq8ByyXUbSdDGRtE2hVXziWqcqvIotL migQUFRPKPHe5I8wlR7KyGZRo0B8QhH4tRUtEIekyPCRBWOpxSCTukimAoOpdjGQ6/Mf q/pPNCJ9P/Srliv16xbGn9krz+En/OkmlGgpXc+Zl40R56iMCUguISI/QpOKCDvkXp86 RgG7MyzZT6U4t91tl25tyAEhBcX/FDKj5TQgWiHBfjum7vapNvwE5ZWUOm4OTI4m5NNF G+/Q==
On 14/04/2018 at 18:23, Vincent Rivière wrote:
With current HG sources, I have also commented out DmaSnd_GenerateSamples()
as a test.
Result: Good YM music, no DMA digidrums, and no 7 KHz issue
It seems to indicate that the 7 KHz artifact comes from the DMA, unless I'm
mistaken...
Other test:
dmaSnd.c, line 553:
switch (microwire.mixing) {
case 1:
/* DMA and YM2149 mixing */
MixBuffer[nBufIdx][0] = MixBuffer[nBufIdx][0] /*+ dma.FrameLeft *
-((256*3/4)/4)/4*/;
break;
Note that I have commented out the DMA part (I could have simply commented
out the whole line).
Result in Lethal Xcess main menu:
YM music, no digidrums... but annoying 7 KHz artifact present!
So it seems to indicate that the noise comes from YM.
Opposite conclusion of my previous test...
I need to have a rest.
NB: The only sane possibility would be that DmaSnd_GenerateSamples() trashes
the YM sound by some side effect.
--
Vincent Rivière