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
Eoin Mcloughlin
23490a0954
Fixing use-after-free resulting in heap corruption
2016-12-06 21:43:16 +00:00
Russ Garrett
e38703c4ae
Explicitly cast to an off_t
...
On OS X the `off_t` claims to be a long long, and the definition of
`min` complains about conflicting types.
2016-05-02 20:13:40 +01:00
Mike Walters
62b75728cc
samplebuffer: Make the history stuff actually work
2016-04-28 01:20:31 +01:00
Mike Walters
20c90635d3
rotator: Set the correct phase at the start of a block
...
Previously the phase of the rotator depended on state of the previous run.
This could've been from any block so it was unlikely to be continuous and
led to the phase of the filtered signal changing on every repaint and
introduced discontinuities between block boundaries.
This change passes the first sample ID into the flowgraph as a tag and
the rotator uses this to set the initial phase.
2016-04-28 01:06:02 +01:00
Mike Walters
6c3ae4ee94
samplebuffer: Process some samples before requested block
...
This is a somewhat hacky fix mainly to fill up FIR filter buffers
now that the input/output is split into chunks
2016-04-23 14:08:32 +01:00
Mike Walters
9762990759
samples: Support float -> float
2016-04-18 22:37:39 +01:00
Mike Walters
43a77e8f6d
samplebuffer: Acquire lock during work function
2016-04-03 19:13:43 +01:00
Mike Walters
12de91d039
samplebuffer: Unsubscribe from src on destruct
2016-03-04 15:54:23 +00:00
Mike Walters
0694d3fd45
samplebuffer: Add some nullptr checks to fix crashyness
2016-03-04 13:15:25 +00:00
Mike Walters
ffdd314f78
samplebuffer: Fix invalidateEvent typos
2016-03-04 13:15:25 +00:00
Mike Walters
b789d3a295
samplesource: Add subscription functionality
2016-03-04 13:15:21 +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
20d4b0c052
Add generic sample buffer class
2015-12-04 01:17:16 +00:00