1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 14:04:46 -04:00

SDRdaemon plugin: ensure a mnimum size of 16MB for the raw buffer

This commit is contained in:
f4exb
2016-03-15 22:20:44 +01:00
parent 42e139e63e
commit 199b04de90
@@ -88,6 +88,10 @@ void SDRdaemonBuffer::updateBufferSize(uint32_t sampleRate)
{
uint32_t rawSize = sampleRate * m_iqSampleSize * m_rawBufferLengthSeconds; // store worth of this seconds of samples at this sample rate
if (rawSize < (1<<24)) {
rawSize = (1<<24);
}
if (rawSize != m_rawSize)
{
m_rawSize = rawSize;