mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-04 18:05:24 -04:00
File source: hardcoded autoloop
This commit is contained in:
parent
196cf51089
commit
3043a654e4
@ -151,7 +151,7 @@ failed:
|
|||||||
|
|
||||||
void FileSourceInput::stopInput()
|
void FileSourceInput::stopInput()
|
||||||
{
|
{
|
||||||
std::cerr << "FileSourceInput::stopInput()" << std::endl;
|
std::cerr << "FileSourceInput::stopInput" << std::endl;
|
||||||
QMutexLocker mutexLocker(&m_mutex);
|
QMutexLocker mutexLocker(&m_mutex);
|
||||||
|
|
||||||
if(m_fileSourceThread != NULL) {
|
if(m_fileSourceThread != NULL) {
|
||||||
|
@ -140,7 +140,9 @@ void FileSourceThread::tick()
|
|||||||
{
|
{
|
||||||
m_sampleFifo->write(m_buf, m_ifstream->gcount());
|
m_sampleFifo->write(m_buf, m_ifstream->gcount());
|
||||||
// TODO: handle loop playback situation
|
// TODO: handle loop playback situation
|
||||||
stopWork();
|
m_ifstream->clear();
|
||||||
|
m_ifstream->seekg(0, std::ios::beg);
|
||||||
|
//stopWork();
|
||||||
//m_ifstream->close();
|
//m_ifstream->close();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user