static PyObject* osl_waitVSync(PyObject *self, PyObject *args, PyObject *kwargs) { if (!PyArg_ParseTuple(args, ":waitVSync")) return NULL; oslWaitVSync(); Py_INCREF(Py_None); return Py_None; }
void SoundWaitTerm() { //Wait the old thread to be deleted while (soundRunning != -1 && !osl_quit) oslWaitVSync(); }