+ static int cnt = 0;
+ va_list vl;
+
+ sprintf(noticeMsg, "%x ", cnt++);
+ va_start(vl, fmt);
+ vsnprintf(noticeMsg+strlen(noticeMsg), sizeof(noticeMsg)-strlen(noticeMsg), fmt, vl);
+ va_end(vl);
+
+ noticeMsgTime = GetTickCount();
+}
+
+
+static void updateSound(int len)
+{
+ if (PicoOpt&8) len<<=1;
+
+ snd_all_samples += len;
+ PsndOut += len;
+ if (PsndOut - snd_cbuff >= snd_cbuf_samples)
+ {
+ if (PsndOut - snd_cbuff != snd_cbuf_samples)
+ stdbg("snd diff is %i, not %i", PsndOut - snd_cbuff, snd_cbuf_samples);
+ PsndOut = snd_cbuff;
+ }
+}
+
+
+static void SkipFrame(void)
+{
+ PicoSkipFrame=1;