/// <summary> /// Set this as the server. A checkbox at startup or something would work. Or read from a config file, or etc... /// Starts up the object outlet stream /// </summary> public void SetServer() { isServer = true; if (isServer) { Debug.Log("Starting device as server."); //this stream will have all the objects that are enabled to stream. lslObjectInfo = new liblsl.StreamInfo("StreamObjects", objectStreamID, objectDataSize, 0, liblsl.channel_format_t.cf_float32, objectIdentifier + id); lslObjectOutlet = new liblsl.StreamOutlet(lslObjectInfo, 0, maxBufLen); Debug.Log("started stream: " + lslObjectOutlet.info().source_id()); Manager.instance.isHost = true; StartCoroutine(ScanForNetwork()); } }