lsl_resolver_results function

  1. @Native<NativeLsl_resolver_results>()
int lsl_resolver_results(
  1. lsl_continuous_resolver res,
  2. Pointer<lsl_streaminfo> buffer,
  3. int buffer_elements
)

Obtain the set of currently present streams on the network (i.e. resolve result).

@param res A continuous resolver (previously created with one of the lsl_create_continuous_resolver() functions). @param buffer A user-allocated buffer to hold the current resolve results.
@attention It is the user's responsibility to either destroy the resulting streaminfo objects or to pass them back to the LSL during during creation of an inlet. @attention The stream_infos returned by the resolver are only short versions that do not include the lsl_get_desc() field (which can be arbitrarily big).

To obtain the full stream information you need to call lsl_get_info() on the inlet after you have created one. @param buffer_elements The user-provided buffer length. @return The number of results written into the buffer (never more than the provided # of slots) or a negative number if an error has occurred (values corresponding to #lsl_error_code_t).

Implementation

@ffi.Native<NativeLsl_resolver_results>()
external int lsl_resolver_results(
  lsl_continuous_resolver res,
  ffi.Pointer<lsl_streaminfo> buffer,
  int buffer_elements,
);