diff modules/bluespec/Pygar/core/AudioCoreSystem.cpp @ 41:16ba43f0a7c3 pygar svn.42

[svn r42] got channels working
author rlm
date Tue, 04 May 2010 22:32:52 -0400
parents 5a30f173bbac
children ced2ebd41347
line wrap: on
line diff
     1.1 --- a/modules/bluespec/Pygar/core/AudioCoreSystem.cpp	Tue May 04 19:53:09 2010 -0400
     1.2 +++ b/modules/bluespec/Pygar/core/AudioCoreSystem.cpp	Tue May 04 22:32:52 2010 -0400
     1.3 @@ -69,7 +69,7 @@
     1.4  //UINT16 sample1;
     1.5  
     1.6    //rlm: not sure if normal ints are ok here; using UINT16 because I know it works
     1.7 -  UINT16 channel0 = 0;
     1.8 +  UINT16 channel0 = 5;
     1.9    //UINT16 channel1 = 1;
    1.10  
    1.11    //init processor 
    1.12 @@ -132,8 +132,8 @@
    1.13      
    1.14       printf("sending file\n");
    1.15      //rlm: two files.
    1.16 -     clientStub->SendUnprocessedStream( Data,(UINT32)sample);
    1.17 -     //clientStub->SendUnprocessedStream(channel0 , Data,(UINT32)sample);
    1.18 +    // clientStub->SendUnprocessedStream( Data,(UINT32)sample);
    1.19 +     clientStub->SendUnprocessedStream((UINT32)channel0 , Data,(UINT32)sample);
    1.20       //clientStub->SendUnprocessedStream(channel1 , Data,(UINT32)sample1);
    1.21  
    1.22    } 
    1.23 @@ -145,9 +145,9 @@
    1.24  
    1.25    //rlm: have to send end-files to both voices.  
    1.26    // all of these operations wil eventually be moved into functions.
    1.27 -  clientStub->SendUnprocessedStream(EndOfFile,0);
    1.28 -    //clientStub->SendUnprocessedStream(channel0, EndOfFile,0);
    1.29 -    // clientStub->SendUnprocessedStream(channel1, EndOfFile,0);
    1.30 +  //clientStub->SendUnprocessedStream(EndOfFile,0);
    1.31 +  clientStub->SendUnprocessedStream((UINT32)channel0, EndOfFile,0);
    1.32 +  // clientStub->SendUnprocessedStream(channel1, EndOfFile,0);
    1.33  
    1.34    printf("main: wait for end of file\n");
    1.35