Esempio n. 1
0
// background thread that will check the status of the buffers
static void* _checkBufferStatus(void* args) {
	AudioManager* manager = (AudioManager*)args;
	while (bgThreadAlive) {
		manager->checkBuffers();
		usleep(500); // 500usec -> 0.5ms
	}
	return NULL;
}