diff modules/bluespec/Pygar/core/AudioCoreRRR.cpp @ 52:49049f97312c pygar svn.53

[svn r53] sends to two cores (but has issues)
author punk
date Thu, 06 May 2010 08:57:53 -0400
parents 2c8166d205d5
children 2991344775f8
line wrap: on
line diff
     1.1 --- a/modules/bluespec/Pygar/core/AudioCoreRRR.cpp	Wed May 05 17:01:04 2010 -0400
     1.2 +++ b/modules/bluespec/Pygar/core/AudioCoreRRR.cpp	Thu May 06 08:57:53 2010 -0400
     1.3 @@ -24,6 +24,7 @@
     1.4      outputFile = NULL;
     1.5      memory = NULL;
     1.6      fflush(stdout);
     1.7 +    count = 0;
     1.8  }
     1.9  
    1.10  // destructor
    1.11 @@ -90,6 +91,13 @@
    1.12  */
    1.13  
    1.14  void
    1.15 +AUDIOCORERRR_SERVER_CLASS::SendTerminate(UINT32 flag)
    1.16 +{
    1.17 +  printf("lsp: Received Process Termination\n");
    1.18 +  CONNECTED_APPLICATION_CLASS::EndSimulation(); 
    1.19 +}
    1.20 +
    1.21 +void
    1.22  
    1.23  AUDIOCORERRR_SERVER_CLASS::SendProcessedStream(UINT16 control, UINT16 data)
    1.24  {
    1.25 @@ -112,7 +120,9 @@
    1.26        }
    1.27  
    1.28        // Long term this should be in the data portion.  But until I have code running, keep it here.
    1.29 -      CONNECTED_APPLICATION_CLASS::EndSimulation(); 
    1.30 +      count++;
    1.31 +      if (count == 2)
    1.32 +        CONNECTED_APPLICATION_CLASS::EndSimulation(); 
    1.33      break;
    1.34  
    1.35      case Data: