comparison core/RTAudio.cpp @ 177:3b364fb8c4ee

Fixed early return after first AuxiliaryTask was started
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 28 Dec 2015 17:50:51 +0100
parents fb2cf9c00024
children a156a694864d
comparison
equal deleted inserted replaced
176:fb2cf9c00024 177:3b364fb8c4ee
391 } 391 }
392 392
393 // The user may have created other tasks. Start those also. 393 // The user may have created other tasks. Start those also.
394 vector<InternalAuxiliaryTask*>::iterator it; 394 vector<InternalAuxiliaryTask*>::iterator it;
395 for(it = getAuxTasks().begin(); it != getAuxTasks().end(); it++) { 395 for(it = getAuxTasks().begin(); it != getAuxTasks().end(); it++) {
396 return BeagleRT_startAuxiliaryTask(*it); 396 int ret = BeagleRT_startAuxiliaryTask(*it);
397 } 397 if(ret != 0)
398 398 return -2;
399 }
399 return 0; 400 return 0;
400 } 401 }
401 402
402 // Stop the PRU-based audio from running and wait 403 // Stop the PRU-based audio from running and wait
403 // for the tasks to complete before returning. 404 // for the tasks to complete before returning.