mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 21:20:31 -05:00 
			
		
		
		
	FileSource plugin: fixed time length buffer
This commit is contained in:
		
							parent
							
								
									afffc2cda8
								
							
						
					
					
						commit
						fd8464eac0
					
				@ -148,14 +148,14 @@ bool FileSourceInput::init(const Message& message)
 | 
				
			|||||||
bool FileSourceInput::start(int device)
 | 
					bool FileSourceInput::start(int device)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	QMutexLocker mutexLocker(&m_mutex);
 | 
						QMutexLocker mutexLocker(&m_mutex);
 | 
				
			||||||
	qDebug() << "FileSourceInput::startInput";
 | 
						qDebug() << "FileSourceInput::start";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (m_ifstream.tellg() != 0) {
 | 
						if (m_ifstream.tellg() != 0) {
 | 
				
			||||||
		m_ifstream.clear();
 | 
							m_ifstream.clear();
 | 
				
			||||||
		m_ifstream.seekg(0, std::ios::beg);
 | 
							m_ifstream.seekg(0, std::ios::beg);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if(!m_sampleFifo.setSize(96000 * 4)) {
 | 
						if(!m_sampleFifo.setSize(m_sampleRate * 4)) {
 | 
				
			||||||
		qCritical("Could not allocate SampleFifo");
 | 
							qCritical("Could not allocate SampleFifo");
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user