-// to be called on 224 or line_sample scanlines only
-static __inline void getSamples(int y)
-{
- if(y == 224) {
- //dprintf("sta%i: %i [%i]", (emustatus & 2), emustatus, y);
- if(emustatus & 2)
- sound_render(PsndLen/2, PsndLen-PsndLen/2);
- else sound_render(0, PsndLen);
- if (emustatus&1) emustatus|=2; else emustatus&=~2;
- if (PicoWriteSound) PicoWriteSound();
- // clear sound buffer
- sound_clear();
- //memset(PsndOut, 0, (PicoOpt & 8) ? (PsndLen<<2) : (PsndLen<<1));
- }
- else if(emustatus & 3) {
- emustatus|= 2;
- emustatus&=~1;
- sound_render(0, PsndLen/2);
- }
-}
-