Pico.m.pal=pal;\r
Pico.video.status = 0x3408 | pal; // always set bits | vblank | pal\r
\r
- sound_reset(); // pal must be known here\r
+ PsndReset(); // pal must be known here\r
\r
if (PicoMCD & 1) {\r
PicoResetMCD(hard);\r
\r
if(y == 224) {\r
if(emustatus & 2)\r
- curr_pos += sound_render(curr_pos, PsndLen-PsndLen/2);\r
- else curr_pos = sound_render(0, PsndLen);\r
+ curr_pos += PsndRender(curr_pos, PsndLen-PsndLen/2);\r
+ else curr_pos = PsndRender(0, PsndLen);\r
if (emustatus&1) emustatus|=2; else emustatus&=~2;\r
if (PicoWriteSound) PicoWriteSound(curr_pos);\r
// clear sound buffer\r
- sound_clear();\r
+ PsndClear();\r
}\r
else if(emustatus & 3) {\r
emustatus|= 2;\r
emustatus&=~1;\r
- curr_pos = sound_render(0, PsndLen/2);\r
+ curr_pos = PsndRender(0, PsndLen/2);\r
}\r
}\r
\r
if (PicoOpt&1) {\r
// we have ym2612 enabled, so we have to run Z80 in lines, so we could update DAC and timers\r
for (line = line_from; line < line_to; line++) {\r
- sound_timers_and_dac(line);\r
+ Psnd_timers_and_dac(line);\r
if ((line == 224 || line == line_sample) && PsndOut) getSamples(line);\r
if (line == 32 && PsndOut) emustatus &= ~1;\r
if (line >= line_from_r && line < line_to_r)\r
\r
// here we render sound if ym2612 is disabled\r
if (!(PicoOpt&1) && PsndOut) {\r
- int len = sound_render(0, PsndLen);\r
+ int len = PsndRender(0, PsndLen);\r
if (PicoWriteSound) PicoWriteSound(len);\r
// clear sound buffer\r
- sound_clear();\r
+ PsndClear();\r
}\r
\r
// a gap between flags set and vint\r