@@ -396,10 +396,11 @@ class stream_outlet {
396396 * @param max_buffered Optionally the maximum amount of data to buffer (in seconds if there is a
397397 * nominal sampling rate, otherwise x100 in samples). The default is 6 minutes of data.
398398 */
399- stream_outlet (const stream_info &info, int32_t chunk_size = 0 , int32_t max_buffered = 360 )
400- : channel_count(info.channel_count()),
401- sample_rate (info.nominal_srate()),
402- obj(lsl_create_outlet(info.handle().get(), chunk_size, max_buffered), &lsl_destroy_outlet) {}
399+ stream_outlet (const stream_info &info, int32_t chunk_size = 0 , int32_t max_buffered = 360 ,
400+ lsl_transport_options_t flags = transp_default)
401+ : channel_count(info.channel_count()), sample_rate(info.nominal_srate()),
402+ obj (lsl_create_outlet_ex(info.handle().get(), chunk_size, max_buffered, flags),
403+ &lsl_destroy_outlet) {}
403404
404405 // ========================================
405406 // === Pushing a sample into the outlet ===
@@ -900,9 +901,10 @@ class stream_inlet {
900901 * lsl::lost_error if the stream's source is lost (e.g., due to an app or computer crash).
901902 */
902903 stream_inlet (const stream_info &info, int32_t max_buflen = 360 , int32_t max_chunklen = 0 ,
903- bool recover = true )
904+ bool recover = true , lsl_transport_options_t flags = transp_default )
904905 : channel_count(info.channel_count()),
905- obj (lsl_create_inlet(info.handle().get(), max_buflen, max_chunklen, recover), &lsl_destroy_inlet) {}
906+ obj (lsl_create_inlet_ex(info.handle().get(), max_buflen, max_chunklen, recover, flags),
907+ &lsl_destroy_inlet) {}
906908
907909 // / Return a shared pointer to pass to C-API functions that aren't wrapped yet
908910 // /
0 commit comments