mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
SDRdaemon plugin: ensure a mnimum size of 16MB for the raw buffer
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user