@@ -33,8 +33,8 @@ public class LSLInput : MonoBehaviour
3333{
3434 public string StreamType = " EEG" ;
3535 public float scaleInput = 0 . 1 f ;
36- LSL . StreamInfo [] streamInfos ;
37- LSL. StreamInlet streamInlet ;
36+ StreamInfo [] streamInfos ;
37+ StreamInlet streamInlet ;
3838 float [] sample ;
3939 private int channelCount = 0 ;
4040
@@ -45,7 +45,7 @@ public class LSLInput : MonoBehaviour
4545 streamInfos = resolve_stream (" type" , StreamType , 1 , 0 . 0 );
4646 if (streamInfos .Length > 0 )
4747 {
48- streamInlet = new LSL . StreamInlet (streamInfos [0 ]);
48+ streamInlet = new StreamInlet (streamInfos [0 ]);
4949 channelCount = streamInlet .info ().channel_count ();
5050 streamInlet .open_stream ();
5151 }
@@ -88,7 +88,7 @@ using LSL;
8888
8989public class LSLOutput : MonoBehaviour
9090{
91- private LSL. StreamOutlet outlet ;
91+ private StreamOutlet outlet ;
9292 private float [] currentSample ;
9393
9494 public string StreamName = " Unity.ExampleStream" ;
@@ -98,12 +98,12 @@ public class LSLOutput : MonoBehaviour
9898 // Start is called before the first frame update
9999 void Start ()
100100 {
101- LSL . StreamInfo streamInfo = new LSL . StreamInfo (StreamName , StreamType , 3 , Time .fixedDeltaTime * 1000 , LSL .channel_format_t .cf_float32 );
102- LSL . XMLElement chans = streamInfo .desc ().append_child (" channels" );
101+ StreamInfo streamInfo = new StreamInfo (StreamName , StreamType , 3 , Time .fixedDeltaTime * 1000 , LSL .channel_format_t .cf_float32 );
102+ XMLElement chans = streamInfo .desc ().append_child (" channels" );
103103 chans .append_child (" channel" ).append_child_value (" label" , " X" );
104104 chans .append_child (" channel" ).append_child_value (" label" , " Y" );
105105 chans .append_child (" channel" ).append_child_value (" label" , " Z" );
106- outlet = new LSL . StreamOutlet (streamInfo );
106+ outlet = new StreamOutlet (streamInfo );
107107 currentSample = new float [3 ];
108108 }
109109
0 commit comments