mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-07 15:47:49 -04:00
loop->memcpy
This commit is contained in:
parent
9cf8799a58
commit
6deee5a936
@ -255,9 +255,7 @@ void SDRThread::threadMain() {
|
|||||||
dataOut->data.resize(n_read);
|
dataOut->data.resize(n_read);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < n_read; i++) {
|
memcpy(&dataOut->data[0], buf, n_read);
|
||||||
dataOut->data[i] = buf[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
double time_slice = (double) n_read / (double) sampleRate;
|
double time_slice = (double) n_read / (double) sampleRate;
|
||||||
seconds += time_slice;
|
seconds += time_slice;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user