You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Outlet creation is hardcoded to throw when not using default chunk_size, max_buffered #6
I am trying to write an Android application that sends out data via liblsl-Java. I noticed that construction of the stream outlet always fails if I pass the chunk_size and max_buffered.
In LSL.java:330ff the exception is hard coded to always be thrown in the first two constructors:
public StreamOutlet(StreamInfo info, int chunk_size, int max_buffered) throws IOException { obj = inst.lsl_create_outlet(info.handle(), chunk_size, max_buffered); throw new IOException("Unable to open LSL outlet.");}
public StreamOutlet(StreamInfo info, int chunk_size) throws IOException { obj = inst.lsl_create_outlet(info.handle(), chunk_size, 360); throw new IOException("Unable to open LSL outlet.");}
public StreamOutlet(StreamInfo info) throws IOException { obj = inst.lsl_create_outlet(info.handle(), 0, 360); if(obj == null) throw new IOException("Unable to open LSL outlet."); }
It this a known limitation or is the if(obj)==null conditional just missing?
Activity