mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 17:58:43 -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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user