@@ -32,19 +32,19 @@ public class LSLInput : MonoBehaviour
3232{
3333 public string StreamType = " EEG" ;
3434 public float scaleInput = 0 . 1 f ;
35- liblsl .StreamInfo [] streamInfos ;
36- liblsl .StreamInlet streamInlet ;
35+ LSL .StreamInfo [] streamInfos ;
36+ LSL .StreamInlet streamInlet ;
3737 float [] sample ;
3838 private int channelCount = 0 ;
3939
4040 void Update ()
4141 {
4242 if (streamInlet == null )
4343 {
44- streamInfos = liblsl .resolve_stream (" type" , StreamType , 1 , 0 . 0 );
44+ streamInfos = LSL .resolve_stream (" type" , StreamType , 1 , 0 . 0 );
4545 if (streamInfos .Length > 0 )
4646 {
47- streamInlet = new liblsl .StreamInlet (streamInfos [0 ]);
47+ streamInlet = new LSL .StreamInlet (streamInfos [0 ]);
4848 channelCount = streamInlet .info ().channel_count ();
4949 streamInlet .open_stream ();
5050 }
@@ -87,7 +87,7 @@ public class LSLInput : MonoBehaviour
8787
8888 public class LSLOutput : MonoBehaviour
8989 {
90- private liblsl .StreamOutlet outlet ;
90+ private LSL .StreamOutlet outlet ;
9191 private float [] currentSample ;
9292
9393 public string StreamName = " Unity.ExampleStream" ;
@@ -97,12 +97,12 @@ public class LSLInput : MonoBehaviour
9797 // Start is called before the first frame update
9898 void Start ()
9999 {
100- liblsl .StreamInfo streamInfo = new liblsl .StreamInfo (StreamName , StreamType , 3 , Time .fixedDeltaTime * 1000 , liblsl .channel_format_t .cf_float32 );
101- liblsl .XMLElement chans = streamInfo .desc ().append_child (" channels" );
100+ LSL .StreamInfo streamInfo = new LSL .StreamInfo (StreamName , StreamType , 3 , Time .fixedDeltaTime * 1000 , liblsl .channel_format_t .cf_float32 );
101+ LSL .XMLElement chans = streamInfo .desc ().append_child (" channels" );
102102 chans .append_child (" channel" ).append_child_value (" label" , " X" );
103103 chans .append_child (" channel" ).append_child_value (" label" , " Y" );
104104 chans .append_child (" channel" ).append_child_value (" label" , " Z" );
105- outlet = new liblsl .StreamOutlet (streamInfo );
105+ outlet = new LSL .StreamOutlet (streamInfo );
106106 currentSample = new float [3 ];
107107 }
108108
0 commit comments