26 Commits

Author SHA1 Message Date
Josh Blum
3f5e373ee4 replace off_t with size_t to match system pointer size
I was having an issue with size of off_t on a multi-gigabit file.
This may have been related to long being a signed 32 bits on MSVC.
But I think there is good reason to use size_t here in general:

https://stackoverflow.com/questions/10634629/what-are-the-usage-differences-between-size-t-and-off-t
2017-11-25 16:06:08 -06:00
Josh Blum
40890e46ab Remove mmap dependencies with QFile
QFile implements cross platform file mapping and removes this dependency entirely.
Also simplifies the file size and error to string handling logic.
2017-11-25 15:54:13 -06:00
schneider
d3754785b0 feat(plotview): Recommend a decimation based on the tuner BW 2016-08-31 22:33:48 +01:00
Jared Boone
3a5428b4ab Access samples, sample size through SampleAdapter. 2016-03-18 11:05:14 -07:00
Jared Boone
b749ab08c8 SampleAdapter virtual class 2016-03-18 11:02:30 -07:00
Mike Walters
fffefbe4be samplesource: Add sample rate property 2016-03-04 17:03:25 +00:00
Mike Walters
2135e03c01 input: Start refactoring InputSource to be able to open/close files 2016-03-04 13:15:25 +00:00
Mike Walters
3aec698450 WIP Style 2016-01-11 02:04:39 +00:00
Mike Walters
b349145d91 Template SampleSource 2015-12-30 22:57:57 +00:00
Mike Walters
ceac834103 Refactor getSamples to return a unique_ptr 2015-12-29 20:42:32 +00:00
Mike Walters
c83892d432 Convert InputSource to SampleSource interface 2015-12-04 01:16:58 +00:00
Mike Walters
9f7b53e402 Add GPLv3+ headers to everything 2015-10-04 16:34:09 +01:00
Tobias Schneider
103726ff61 fix(spectrogram, inputsource): Use off_t where necessary 2015-10-03 23:10:11 +02:00
Mike Walters
4f87b0b0a1 Move FFT processing to Spectrogram 2015-08-02 23:00:28 +01:00
Mike Walters
407c60db85 Wrap fftw calls in a class 2015-08-02 15:16:23 +01:00
Mike Walters
35bd613d0d Add method for getting raw samples from InputSource 2015-08-01 20:55:12 +01:00
Mike Walters
a0d4a066cd Soem style cleanup 2015-07-23 17:34:57 +01:00
Mike
5bdaff1329 Change inputsource to allow for changing fft size on the fly 2015-07-14 22:50:07 +01:00
Mike Walters
205ceef8f9 Get rid of old caching stuff 2015-07-13 00:41:52 +01:00
Mike Walters
53b8dabe73 Cache current view for reuse on next paint 2015-06-25 00:04:27 +01:00
Mike Walters
b5142ce761 Rename GetOverlap to GetFFTStride for clarity 2015-06-24 21:44:00 +01:00
Philpax
3e42ad1736 Replaced m_window with a unique_ptr 2015-06-23 21:33:59 +10:00
Philpax
c0b3049141 Some basic C++ style tweaks 2015-06-23 21:22:23 +10:00
Mike
0d6831110c Make zoom functions return whether they were successful 2015-06-22 02:38:39 +01:00
Mike Walters
d740c0d8fb Add zoom functionality 2015-06-21 23:42:00 +01:00
Mike Walters
c8940932fb Abstract out data loading/processing
Current super naive, eats all your CPU on repaint
ref #7
2015-06-21 22:42:24 +01:00