mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-03 06:24:48 -04:00
Fixed file source. Basically working
This commit is contained in:
@@ -205,14 +205,14 @@
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../../sdrbase/resources/res.qrc">
|
||||
<normaloff>:/pause.png</normaloff>
|
||||
<normalon>:/play.png</normalon>
|
||||
<normaloff>:/play.png</normaloff>
|
||||
<normalon>:/pause.png</normalon>
|
||||
<disabledoff>:/stop.png</disabledoff>
|
||||
<disabledon>:/stop.png</disabledon>
|
||||
<activeoff>:/pause.png</activeoff>
|
||||
<activeon>:/play.png</activeon>
|
||||
<selectedoff>:/pause.png</selectedoff>
|
||||
<selectedon>:/play.png</selectedon>:/pause.png</iconset>
|
||||
<activeoff>:/play.png</activeoff>
|
||||
<activeon>:/pause.png</activeon>
|
||||
<selectedoff>:/play.png</selectedoff>
|
||||
<selectedon>:/pause.png</selectedon>:/pause.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
|
||||
@@ -102,6 +102,11 @@ bool FileSourceInput::startInput(int device)
|
||||
std::cerr << "FileSourceInput::startInput" << std::endl;
|
||||
QMutexLocker mutexLocker(&m_mutex);
|
||||
|
||||
if(!m_sampleFifo.setSize(96000 * 4)) {
|
||||
qCritical("Could not allocate SampleFifo");
|
||||
return false;
|
||||
}
|
||||
|
||||
openFileStream();
|
||||
|
||||
if((m_fileSourceThread = new FileSourceThread(&m_ifstream, &m_sampleFifo)) == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user