@@ -12,10 +12,10 @@ static void Main(string[] args)
1212 Console . Out . WriteLine ( "Test" ) ;
1313 }
1414 // create a new StreamInfo and declare some meta-data (in accordance with XDF format)
15- using liblsl . StreamInfo info = new liblsl . StreamInfo ( "MetaTester" , "EEG" , 8 , 100 , liblsl . channel_format_t . cf_float32 , "myuid323457" ) ;
15+ using liblsl . StreamInfo info = new liblsl . StreamInfo ( "MetaTester" , "EEG" , 8 , 100 , liblsl . channel_format_t . cf_float32 , "myuid323457" ) ;
1616 liblsl . XMLElement chns = info . desc ( ) . append_child ( "channels" ) ;
17- String [ ] labels = { "C3" , "C4" , "Cz" , "FPz" , "POz" , "CPz" , "O1" , "O2" } ;
18- for ( int k = 0 ; k < labels . Length ; k ++ )
17+ String [ ] labels = { "C3" , "C4" , "Cz" , "FPz" , "POz" , "CPz" , "O1" , "O2" } ;
18+ for ( int k = 0 ; k < labels . Length ; k ++ )
1919 chns . append_child ( "channel" )
2020 . append_child_value ( "label" , labels [ k ] )
2121 . append_child_value ( "unit" , "microvolts" )
@@ -32,9 +32,9 @@ static void Main(string[] args)
3232 // === the following could run on another computer ===
3333
3434 // resolve the stream and open an inlet
35- liblsl . StreamInfo [ ] results = liblsl . resolve_stream ( "name" , "MetaTester" ) ;
35+ liblsl . StreamInfo [ ] results = liblsl . resolve_stream ( "name" , "MetaTester" ) ;
3636 using liblsl . StreamInlet inlet = new liblsl . StreamInlet ( results [ 0 ] ) ;
37- foreach ( liblsl . StreamInfo si in results ) si . Dispose ( ) ;
37+ results . DisposeArray ( ) ;
3838
3939 // get the full stream info (including custom meta-data) and dissect it
4040 using liblsl . StreamInfo inf = inlet . info ( ) ;
0 commit comments