comparison core/NetworkSend.cpp @ 115:a0e24514fc97 scope-refactoring

there was a stray timestamp left there ..:
author Giulio Moro <giuliomoro@yahoo.it>
date Wed, 19 Aug 2015 23:14:37 +0100
parents 7dfae7b7ab12
children 8341df5e404b
comparison
equal deleted inserted replaced
114:7b351b7d8770 115:a0e24514fc97
67 channel.readyToBeSent=true; 67 channel.readyToBeSent=true;
68 channel.index=channel.headerLength; //reset the counter 68 channel.index=channel.headerLength; //reset the counter
69 if(channel.doneOnTime==false){ 69 if(channel.doneOnTime==false){
70 printf("Network buffer underrun. timestamp: %d :-{\n", (int)channel.buffers[!channel.activeBuffer][1]); 70 printf("Network buffer underrun. timestamp: %d :-{\n", (int)channel.buffers[!channel.activeBuffer][1]);
71 } 71 }
72 channel.timestamp=sampleCount;
73 channel.activeBuffer=!channel.activeBuffer; //switch buffer 72 channel.activeBuffer=!channel.activeBuffer; //switch buffer
74 channel.doneOnTime=false; 73 channel.doneOnTime=false;
75 BeagleRT_scheduleAuxiliaryTask(NetworkSend::transmitAudioTask); //send the buffer 74 BeagleRT_scheduleAuxiliaryTask(NetworkSend::transmitAudioTask); //send the buffer
76 //TODO: maybe we should have transmitAudioTask running in a loop instead of scheduling it multiple times? 75 //TODO: maybe we should have transmitAudioTask running in a loop instead of scheduling it multiple times?
77 } 76 }