Page 1 of 1
XGM PCM crackle question
Posted: Tue Sep 13, 2016 11:19 am
by cero
I have some PCM sound (voice recording) that crackles when played. The frequency is not the issue, nor is wavtoraw's 16-to-14 kHz conversion - the converted file sounds fine when played in Audacity.
I would appreciate if someone could check this, is it still the ladder effect hw bug, or a bug in the XGM driver?
Source, binary:
https://u.pomf.is/uznkzu.zip
It also includes the output from an emulator.
Re: XGM PCM crackle question
Posted: Tue Sep 13, 2016 12:59 pm
by Stef
Can't download your file...
Does the crackle happens in emulators as well or only on real hardware ?
Are you interrupting Z80 for a long time ? or hogging main BUS for too long (DMA exceeding VBlank period) ?
Re: XGM PCM crackle question
Posted: Tue Sep 13, 2016 4:57 pm
by cero
Blocked by your ISP? That's been quite a reliable host, what download service works for you?
I still can't test on hw, so just in multiple emulators. (Got a Genny, but no flashcart yet)
Here's the full source:
Code: Select all
#include <genesis.h>
#include "files.h"
int main() {
Z80_init();
Z80_loadDriver(Z80_DRIVER_XGM, 1);
SND_setPCM_XGM(64, snd_you, sizeof(snd_you));
SND_startPlayPCM_XGM(64, 0, 0);
VDP_drawText("Hello Genny World!", 10, 13);
while (1);
return 0;
}
Re: XGM PCM crackle question
Posted: Tue Sep 13, 2016 7:09 pm
by Stef
Definitely the emulator, without any doubt. In fact depending the emulator the DAC is sampled at different rate which create the aliasing your hear. But you may also use a 14 Khz resampled sample for better result as the internal rescomp resampler sucks
