1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

File source: hardcoded autoloop

This commit is contained in:
f4exb 2015-08-05 09:26:00 +02:00
parent 196cf51089
commit 3043a654e4
2 changed files with 4 additions and 2 deletions

View File

@ -151,7 +151,7 @@ failed:
void FileSourceInput::stopInput()
{
std::cerr << "FileSourceInput::stopInput()" << std::endl;
std::cerr << "FileSourceInput::stopInput" << std::endl;
QMutexLocker mutexLocker(&m_mutex);
if(m_fileSourceThread != NULL) {

View File

@ -140,7 +140,9 @@ void FileSourceThread::tick()
{
m_sampleFifo->write(m_buf, m_ifstream->gcount());
// TODO: handle loop playback situation
stopWork();
m_ifstream->clear();
m_ifstream->seekg(0, std::ios::beg);
//stopWork();
//m_ifstream->close();
}
else