@@ -400,6 +400,10 @@ class stream_outlet {
400400 : channel_count(info.channel_count()),
401401 sample_rate (info.nominal_srate()),
402402 obj(lsl_create_outlet(info.handle().get(), chunk_size, max_buffered), &lsl_destroy_outlet) {}
403+ stream_outlet (const stream_info &info, int32_t chunk_size, double max_buffered)
404+ : channel_count(info.channel_count()), sample_rate(info.nominal_srate()),
405+ obj(lsl_create_outlet_d(info.handle().get(), chunk_size, max_buffered),
406+ &lsl_destroy_outlet) {}
403407
404408 // ========================================
405409 // === Pushing a sample into the outlet ===
@@ -903,6 +907,11 @@ class stream_inlet {
903907 bool recover = true )
904908 : channel_count(info.channel_count()),
905909 obj (lsl_create_inlet(info.handle().get(), max_buflen, max_chunklen, recover), &lsl_destroy_inlet) {}
910+ stream_inlet (const stream_info &info, double max_buflen, int32_t max_chunklen = 0 ,
911+ bool recover = true )
912+ : channel_count(info.channel_count()),
913+ obj(lsl_create_inlet_d(info.handle().get(), max_buflen, max_chunklen, recover),
914+ &lsl_destroy_inlet) {}
906915
907916 // / Return a shared pointer to pass to C-API functions that aren't wrapped yet
908917 // /
0 commit comments