mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-12 10:48:39 -04:00
Changed data transaction objects to use pointers
This commit is contained in:
@@ -156,10 +156,10 @@ void SDRThread::threadMain() {
|
||||
|
||||
rtlsdr_read_sync(dev, buf, BUF_SIZE, &n_read);
|
||||
|
||||
std::vector<signed char> new_buffer;
|
||||
std::vector<signed char> *new_buffer = new std::vector<signed char>;
|
||||
|
||||
for (int i = 0; i < n_read; i++) {
|
||||
new_buffer.push_back(buf[i] - 127);
|
||||
new_buffer->push_back(buf[i] - 127);
|
||||
}
|
||||
|
||||
double time_slice = (double) n_read / (double) sample_rate;
|
||||
|
||||
Reference in New Issue
Block a user