Mercurial > hg > beaglert
changeset 513:485913c58a61 prerelease
removed old readFileTask from libpd
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Wed, 22 Jun 2016 04:58:17 +0100 |
parents | 8e48dd7c8c23 |
children | ce5bb14c21fb |
files | core/default_libpd_render.cpp |
diffstat | 1 files changed, 0 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- 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; }