comparison projects/scope/render.cpp @ 122:bc514f29c3aa scope-refactoring

ReceiveAudioThread updated to match the newest UdpServer
author Giulio Moro <giuliomoro@yahoo.it>
date Sat, 22 Aug 2015 01:20:55 +0100
parents cdd441a304a9
children 2696a7f00053
comparison
equal deleted inserted replaced
121:2197435e8fb4 122:bc514f29c3aa
47 // will be 0. 47 // will be 0.
48 48
49 void render(BeagleRTContext *context, void *userData) 49 void render(BeagleRTContext *context, void *userData)
50 { 50 {
51 static int count=0; 51 static int count=0;
52 if(count==0) 52 if(count==0){
53 printf("startHread\n");
53 ReceiveAudioThread::startThread(); 54 ReceiveAudioThread::startThread();
54 55 }
55 for(unsigned int n = 0; n < context->audioFrames; n++) { 56 for(unsigned int n = 0; n < context->audioFrames; n++) {
56 57
57 float chn0 = sinf(gPhase1); 58 float chn0 = sinf(gPhase1);
58 float chn1 = sinf(gPhase2); 59 float chn1 = sinf(gPhase2);
59 60