Skip to content

Commit b153a16

Browse files
authored
Merge branch 'cboulay/double_buflen' into cboulay/outlet_sync
2 parents 7530c48 + bad96d6 commit b153a16

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

examples/SendDataInChunks.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ int main(int argc, char **argv) {
104104
int32_t chunk_rate = argc > 6 ? std::stol(argv[6]) : 10; // Chunks per second.
105105
bool nodata = argc > 7;
106106
bool do_async = argc > 8 ? (bool)std::stol(argv[8]) : true;
107-
int32_t chunk_samples = samplingrate > 0 ? std::max((samplingrate / chunk_rate), 1) : 100; // Samples per chunk.
107+
108+
int32_t chunk_samples = samplingrate > 0 ? std::max((samplingrate / chunk_rate), 1) : 100; // Samples per chunk.
108109
int32_t chunk_duration = 1000 / chunk_rate; // Milliseconds per chunk
109110

110111
try {

src/lsl_outlet_c.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ LIBLSL_C_API lsl_outlet lsl_create_outlet(
2929
return lsl_create_outlet_d(info, chunk_size, (double)max_buffered, 1);
3030
}
3131

32+
LIBLSL_C_API lsl_outlet lsl_create_outlet(
33+
lsl_streaminfo info, int32_t chunk_size, int32_t max_buffered) {
34+
return lsl_create_outlet_d(info, chunk_size, (double)max_buffered);
35+
}
36+
3237
LIBLSL_C_API void lsl_destroy_outlet(lsl_outlet out) {
3338
try {
3439
delete out;

0 commit comments

Comments
 (0)