Ejemplo n.º 1
0
RTcmix::~RTcmix()
{
#ifndef MAXMSP
	run_status = RT_SHUTDOWN;
	waitForMainLoop();
#endif
	free_globals();
}
Ejemplo n.º 2
0
RTcmix::~RTcmix()
{
	run_status = RT_SHUTDOWN;
	waitForMainLoop();	// This calls close()
	free_globals();
#ifdef EMBEDDED
	destroy_parser();	// clean up symbols, etc
#endif
}
Ejemplo n.º 3
0
void RTcmix::run()
{
	int retcode;
	if (!Option::play() && !Option::record() && rtfileit == 1) {
		/* Create scheduling/audio thread. */
		rtcmix_debug(NULL, "RTcmix::run calling runMainLoop()");
		retcode = runMainLoop();
		if (retcode != 0) {
			rtcmix_warn(NULL, "RTcmix::run: runMainLoop() failed");
		}
		else {
			/* Wait for audio thread. */
			rtcmix_debug(NULL, "RTcmix::run calling waitForMainLoop()");
			retcode = waitForMainLoop();
			if (retcode != 0) {
				rtcmix_warn(NULL, "RTcmix::run: waitForMailLoop() failed");
			}
		}
	}
}
Ejemplo n.º 4
0
void RTcmix::run()
{
	int retcode;
	if (!Option::play() && !Option::record() && rtfileit == 1) {
		/* Create scheduling/audio thread. */
#ifdef DBUG
		fprintf(stdout, "calling runMainLoop()\n");
#endif
		retcode = runMainLoop();
		if (retcode != 0) {
			fprintf(stderr, "runMainLoop() failed\n");
		}
		else {
			/* Wait for audio thread. */
#ifdef DBUG
			fprintf(stdout, "calling waitForMainLoop()\n");
#endif
			retcode = waitForMainLoop();
			if (retcode != 0) {
				fprintf(stderr, "waitForMailLoop() failed\n");
			}
		}
	}
}