*** empty log message ***
[chuck-blob.git] / v2 / test / event_osc_string.ck
blob7a3b51a6302745f9aa24172d210f4a082c46b8b9
1 OSC_Recv recv;
3 6448 => recv.port;
4 recv.listen();
6 <<<"string receive test started">>>;
7 function void trigger_s () { 
8         <<<"function started">>>;
9         recv.event( "/foo/zoop,s" ) @=> OSC_Addr oscev;
10         while ( true  ) { 
11                 oscev => now;   
12                 <<<"Event occurred">>>;
13                 while ( oscev.nextMesg() != 0 ) { 
14                         <<<"fetching string">>>;
15                         string c;
16                         oscev.getString() => c; 
17                         <<<"zoop">>>;   
18                         <<<c>>>;
19                 }
20         }
23 spork ~ trigger_s();
26 while ( true ) { 
27         1::second => now;