mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-15 05:23:30 +02:00
hopefully a fix for the linux crash
This commit is contained in:
@ -11,7 +11,12 @@ namespace dsp::sink {
|
||||
public:
|
||||
RingBuffer() {}
|
||||
|
||||
RingBuffer(stream<T>* in) { base_type::init(in); }
|
||||
RingBuffer(stream<T>* in, int maxLatency) { init(in, maxLatency); }
|
||||
|
||||
void init(stream<T>* in, int maxLatency) {
|
||||
data.init(maxLatency);
|
||||
base_type::init(in);
|
||||
}
|
||||
|
||||
int run() {
|
||||
int count = base_type::_in->read();
|
||||
|
Reference in New Issue
Block a user