diff modules/bluespec/Pygar/core/AudioCoreSystem.cpp @ 23:90197e3375e2 pygar svn.24

[svn r24] added testing, but something is wrong with our c++ file.
author rlm
date Wed, 28 Apr 2010 08:19:09 -0400
parents 6d461680c6d9
children 220c14f5963c
line wrap: on
line diff
     1.1 --- a/modules/bluespec/Pygar/core/AudioCoreSystem.cpp	Wed Apr 28 00:40:15 2010 -0400
     1.2 +++ b/modules/bluespec/Pygar/core/AudioCoreSystem.cpp	Wed Apr 28 08:19:09 2010 -0400
     1.3 @@ -16,7 +16,8 @@
     1.4  
     1.5  // constructor
     1.6  CONNECTED_APPLICATION_CLASS::CONNECTED_APPLICATION_CLASS(VIRTUAL_PLATFORM vp) :
     1.7 -    clientStub(new AUDIOCORERRR_CLIENT_STUB_CLASS(this))
     1.8 +   
     1.9 +  clientStub(new AUDIOCORERRR_CLIENT_STUB_CLASS(this))
    1.10  {
    1.11  }
    1.12  
    1.13 @@ -74,13 +75,14 @@
    1.14  
    1.15    int count = 0;
    1.16  
    1.17 -  printf("main: about to enter loop %d\n", count);  
    1.18 +  printf("main:PROCESSOR about to enter loop %d\n", count);  
    1.19  
    1.20    while(fread(&sample, 2, 1, inputFile)) {
    1.21      if(count%1000 == 0)
    1.22        printf("main: %d\n", count);
    1.23      count++;
    1.24      sem_wait(&throttle);
    1.25 +    printf("rlm:sending data to processor (%d)\n", count);
    1.26      clientStub->SendUnprocessedStream(Data,(UINT32)sample);
    1.27    } 
    1.28  
    1.29 @@ -95,7 +97,7 @@
    1.30    pthread_cond_wait(&cond, &lock);
    1.31    pthread_mutex_unlock(&lock);
    1.32  
    1.33 -  printf("main: lastt data out\n");
    1.34 +  printf("main: last data out\n");
    1.35  
    1.36    // Convert input wav to pcm
    1.37    generate_wav("out_hw.pcm","input.wav","out_hw.wav");