# HG changeset patch # User Giulio Moro # Date 1466567897 -3600 # Node ID 485913c58a611fd3e00e391956531f5c87ad24d1 # Parent 8e48dd7c8c239ca9ceaa969f8b2b87bd68c72b4a removed old readFileTask from libpd diff -r 8e48dd7c8c23 -r 485913c58a61 core/default_libpd_render.cpp --- a/core/default_libpd_render.cpp Wed Jun 22 04:53:20 2016 +0100 +++ b/core/default_libpd_render.cpp Wed Jun 22 04:58:17 2016 +0100 @@ -32,24 +32,9 @@ void Bela_printHook(const char *recv){ rt_printf("%s", recv); } - -//TODO: remove this function -void libpdReadFilesLoop(){ - return; - while(!gShouldStop){ - // check for modified sockets/file descriptors - // (libpd would normally do this every block WITHIN the audio thread) - // not sure if this is thread-safe at the moment - libpd_sys_microsleep(0); - usleep(1000); - } -} - #define PARSE_MIDI -static AuxiliaryTask libpdReadFilesTask; static Midi midi; static DigitalChannelManager dcm; -//UdpServer udpServer; void sendDigitalMessage(bool state, unsigned int delay, void* receiverName){ libpd_float((char*)receiverName, (float)state); @@ -223,10 +208,6 @@ printf("Error: file %s/%s is corrupted.\n", folder, file); return false; } - libpdReadFilesTask = Bela_createAuxiliaryTask(libpdReadFilesLoop, 60, "libpdReadFiles"); - Bela_scheduleAuxiliaryTask(libpdReadFilesTask); - - return true; }