sccn / lsl_archived

Multi-modal time-synched data transmission over local network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing timeout parameter in C# binding for wait_for_consumers()

albertkolberg opened this issue · comments

I believe the timeout parameter is missing in the following binding:

[DllImport(libname, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)]
public static extern int lsl_wait_for_consumers(IntPtr obj);
/**
* Wait until some consumer shows up (without wasting resources).
* @return True if the wait was successful, false if the timeout expired.
*/
public bool wait_for_consumers(double timeout) { return dll.lsl_wait_for_consumers(obj)>0; }

The Api exposes:

/**
* Wait until some consumer shows up (without wasting resources).
* @return True if the wait was successful, false if the timeout expired.
*/
extern LIBLSL_C_API int32_t lsl_wait_for_consumers(lsl_outlet out, double timeout);