1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-27 02:09:14 -05:00

FileSource plugin: fixed time length buffer

This commit is contained in:
f4exb 2016-10-08 06:00:54 +02:00
parent afffc2cda8
commit fd8464eac0

View File

@ -148,14 +148,14 @@ bool FileSourceInput::init(const Message& message)
bool FileSourceInput::start(int device)
{
QMutexLocker mutexLocker(&m_mutex);
qDebug() << "FileSourceInput::startInput";
qDebug() << "FileSourceInput::start";
if (m_ifstream.tellg() != 0) {
m_ifstream.clear();
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");
return false;
}