X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=picodrive.git;a=blobdiff_plain;f=pico%2Fsound%2Fsound.c;h=e799e93686cb01aea53206f83a06f6e079e50160;hp=56ffe3f8c80d4419860a0ccd8eb01b57375ac37d;hb=075672bf9f028490174bd3fbebe957a47a10b09d;hpb=eef77d7a8b0b0d47e9559e40d8cb6407ea39b0f2 diff --git a/pico/sound/sound.c b/pico/sound/sound.c index 56ffe3f..e799e93 100644 --- a/pico/sound/sound.c +++ b/pico/sound/sound.c @@ -370,15 +370,12 @@ PICO_INTERNAL void PsndGetSamples(int y) PICO_INTERNAL void PsndGetSamplesMS(void) { - int stereo = (PicoIn.opt & 8) >> 3; int length = PsndLen_use; - // PSG - if (PicoIn.opt & POPT_EN_PSG) - SN76496Update(PsndOut, length, stereo); + PsndDoPSG(223); // upmix to "stereo" if needed - if (stereo) { + if (PicoIn.opt & POPT_EN_STEREO) { int i, *p; for (i = length, p = (void *)PsndOut; i > 0; i--, p++) *p |= *p << 16; @@ -387,6 +384,8 @@ PICO_INTERNAL void PsndGetSamplesMS(void) if (PicoWriteSound != NULL) PicoWriteSound(length * ((PicoIn.opt & POPT_EN_STEREO) ? 4 : 2)); PsndClear(); + + dac_info[224] = 0; } // vim:shiftwidth=2:ts=2:expandtab