comparison modules/bluespec/Pygar/core/AudioCoreRRR.cpp @ 25:220c14f5963c pygar svn.26

[svn r26] Not fully connected but passes audio successfully
author punk
date Wed, 28 Apr 2010 12:01:37 -0400
parents 90197e3375e2
children 2c8166d205d5
comparison
equal deleted inserted replaced
24:3871f3530551 25:220c14f5963c
90 void 90 void
91 91
92 AUDIOCORERRR_SERVER_CLASS::SendProcessedStream(UINT16 control, UINT16 data) 92 AUDIOCORERRR_SERVER_CLASS::SendProcessedStream(UINT16 control, UINT16 data)
93 { 93 {
94 94
95 printf("rlm: SendProcessedStream called,\n"); 95 // printf("rlm: SendProcessedStream called,\n");
96 AudioProcessorControl audioProcessorControl = (AudioProcessorControl) control; 96 AudioProcessorControl audioProcessorControl = (AudioProcessorControl) control;
97 switch(control) { 97 switch(control) {
98 case EndOfFile: 98 case EndOfFile:
99 if(outputFile != NULL) { 99 if(outputFile != NULL) {
100 printf("rlm: FILE is NULL\n"); 100 printf("rlm: FILE is NULL\n");
118 outputFile = fopen("out_hw.pcm","w"); 118 outputFile = fopen("out_hw.pcm","w");
119 assert(outputFile); 119 assert(outputFile);
120 } 120 }
121 121
122 CONNECTED_APPLICATION_CLASS::UpdateSemaphore(); 122 CONNECTED_APPLICATION_CLASS::UpdateSemaphore();
123 printf("rlm: writing data to out_hw.pcm\n"); 123 // printf("rlm: writing data to out_hw.pcm\n");
124 fwrite(&data, 2,1 , outputFile); 124 fwrite(&data, 2,1 , outputFile);
125 break; 125 break;
126 } 126 }
127 } 127 }