comparison modules/bluespec/Pygar/core/AudioCoreSystem.cpp @ 64:bf08daea854e pygar svn.65

[svn r65] compiles but doesn't run
author punk
date Mon, 10 May 2010 23:16:14 -0400
parents b5be746a0d74
children cf8bb3038cbd
comparison
equal deleted inserted replaced
63:1d5cbb5343d2 64:bf08daea854e
17 // constructor 17 // constructor
18 CONNECTED_APPLICATION_CLASS::CONNECTED_APPLICATION_CLASS(VIRTUAL_PLATFORM vp) : 18 CONNECTED_APPLICATION_CLASS::CONNECTED_APPLICATION_CLASS(VIRTUAL_PLATFORM vp) :
19 19
20 clientStub(new AUDIOCORERRR_CLIENT_STUB_CLASS(this)) 20 clientStub(new AUDIOCORERRR_CLIENT_STUB_CLASS(this))
21 { 21 {
22 printf("SendSide Created\n");
22 } 23 }
23 24
24 // destructor 25 // destructor
25 CONNECTED_APPLICATION_CLASS::~CONNECTED_APPLICATION_CLASS() 26 CONNECTED_APPLICATION_CLASS::~CONNECTED_APPLICATION_CLASS()
26 { 27 {
29 // init 30 // init
30 void 31 void
31 CONNECTED_APPLICATION_CLASS::Init() 32 CONNECTED_APPLICATION_CLASS::Init()
32 { 33 {
33 34
35 printf("InitSend Side\n");
34 pthread_mutex_init(&lock, NULL); 36 pthread_mutex_init(&lock, NULL);
35 pthread_cond_init(&cond, NULL); 37 pthread_cond_init(&cond, NULL);
36 sem_init(&throttle, 0, 64); 38 sem_init(&throttle, 0, 64);
37 39
38 // enable stats 40 // enable stats
39 // STATS_DEVICE_SERVER_CLASS::GetInstance()->SetupStats(); 41 //STATS_DEVICE_SERVER_CLASS::GetInstance()->SetupStats();
40 } 42 }
41 43
42 //This isn't called. 44 //This isn't called.
43 void 45 void
44 CONNECTED_APPLICATION_CLASS::UpdateSemaphore() 46 CONNECTED_APPLICATION_CLASS::UpdateSemaphore()
45 { 47 {
48 printf("UpdateSemaphore\n");
46 sem_post(&throttle); 49 sem_post(&throttle);
47 } 50 }
48 51
49 void 52 void
50 CONNECTED_APPLICATION_CLASS::EndSimulation() 53 CONNECTED_APPLICATION_CLASS::EndSimulation()
77 int sleepCount = 0; 80 int sleepCount = 0;
78 int result = 0; 81 int result = 0;
79 82
80 bool coreFin = false; 83 bool coreFin = false;
81 84
85 printf("SendSide Main\n");
82 fflush(stdout); 86 fflush(stdout);
83 87
84 // Convert input wav to pcm 88 // Convert input wav to pcm
85 89
86 //rlm: for now we are going to going to just have 2 files with "common names" 90 //rlm: for now we are going to going to just have 2 files with "common names"