io: use proper pointer type in filesink (#4105)

master
Piotr 2 years ago committed by GitHub
parent 4d864e1e3b
commit 894b449fca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -132,7 +132,13 @@ int srsran_filesink_write_multi(srsran_filesink_t* q, void** buffer, int nsample
uint32_t count = 0;
for (i = 0; i < nsamples; i++) {
for (j = 0; j < nchannels; j++) {
count += fwrite(&cbuf[j][i], size, 1, q->f);
if (q->type == SRSRAN_FLOAT_BIN) {
count += fwrite(&fbuf[j][i], size, 1, q->f);
} else if (q->type == SRSRAN_COMPLEX_FLOAT_BIN) {
count += fwrite(&cbuf[j][i], size, 1, q->f);
} else if (q->type == SRSRAN_COMPLEX_SHORT_BIN) {
count += fwrite(&sbuf[j][i], size, 1, q->f);
}
}
}
return count;

Loading…
Cancel
Save