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