RTcmix::~RTcmix() { #ifndef MAXMSP run_status = RT_SHUTDOWN; waitForMainLoop(); #endif free_globals(); }
RTcmix::~RTcmix() { run_status = RT_SHUTDOWN; waitForMainLoop(); // This calls close() free_globals(); #ifdef EMBEDDED destroy_parser(); // clean up symbols, etc #endif }
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"); } } } }
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"); } } } }