Skip to content

Commit 17a5052

Browse files
committed
Fixes a mismatch protocol bug for string streams #76
1 parent 6e83e3d commit 17a5052

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sample.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,8 @@ sample &sample::assign_test_pattern(int offset) {
309309
break;
310310
case cft_string: {
311311
std::string *data = (std::string *)&data_;
312-
offset += 10;
313312
for (uint32_t k = 0u; k < num_channels_; k++)
314-
data[k] = to_string(k * (k % 2 == 0 ? 1 : -1));
313+
data[k] = to_string((k + 10) * (k % 2 == 0 ? 1 : -1));
315314
break;
316315
}
317316
case cft_int32:

0 commit comments

Comments
 (0)