Mercurial > pygar
comparison modules/bluespec/Pygar/core/AudioCoreRRR.cpp @ 65:cf8bb3038cbd pygar svn.66
[svn r66] sim passes
author | punk |
---|---|
date | Tue, 11 May 2010 09:05:22 -0400 |
parents | bf08daea854e |
children |
comparison
equal
deleted
inserted
replaced
64:bf08daea854e | 65:cf8bb3038cbd |
---|---|
18 AUDIOCORERRR_SERVER_CLASS::AUDIOCORERRR_SERVER_CLASS() : | 18 AUDIOCORERRR_SERVER_CLASS::AUDIOCORERRR_SERVER_CLASS() : |
19 serverStub(new AUDIOCORERRR_SERVER_STUB_CLASS(this)) | 19 serverStub(new AUDIOCORERRR_SERVER_STUB_CLASS(this)) |
20 { | 20 { |
21 // instantiate stub | 21 // instantiate stub |
22 | 22 |
23 printf("ReceiveSide Created\n"); | |
24 outputFile = NULL; | 23 outputFile = NULL; |
25 memory = NULL; | 24 memory = NULL; |
26 fflush(stdout); | 25 fflush(stdout); |
27 count = 0; | 26 count = 0; |
27 printf("ReceiveSide Created\n"); | |
28 | |
28 } | 29 } |
29 | 30 |
30 // destructor | 31 // destructor |
31 AUDIOCORERRR_SERVER_CLASS::~AUDIOCORERRR_SERVER_CLASS() | 32 AUDIOCORERRR_SERVER_CLASS::~AUDIOCORERRR_SERVER_CLASS() |
32 { | 33 { |
130 outputFile = fopen("out_hw.pcm","w"); | 131 outputFile = fopen("out_hw.pcm","w"); |
131 assert(outputFile); | 132 assert(outputFile); |
132 } | 133 } |
133 | 134 |
134 CONNECTED_APPLICATION_CLASS::UpdateSemaphore(); | 135 CONNECTED_APPLICATION_CLASS::UpdateSemaphore(); |
135 // printf("rlm: writing data to out_hw.pcm\n"); | 136 printf("rlm: writing data to out_hw.pcm\n"); |
136 fwrite(&data, 2,1 , outputFile); | 137 fwrite(&data, 2,1 , outputFile); |
137 break; | 138 break; |
138 } | 139 } |
139 } | 140 } |