Mercurial > hg > svcore
comparison data/model/WaveFileModel.cpp @ 267:fa612dc181af
* Fix failure to play right to the end of files loaded from mp3 or ogg
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2007 13:49:30 +0000 |
parents | 2268963dabd1 |
children | 822bd7fd526c |
comparison
equal
deleted
inserted
replaced
266:2268963dabd1 | 267:fa612dc181af |
---|---|
454 delete m_fillThread; | 454 delete m_fillThread; |
455 m_fillThread = 0; | 455 m_fillThread = 0; |
456 delete m_updateTimer; | 456 delete m_updateTimer; |
457 m_updateTimer = 0; | 457 m_updateTimer = 0; |
458 m_mutex.unlock(); | 458 m_mutex.unlock(); |
459 if (getEndFrame() > m_lastFillExtent) { | |
460 emit modelChanged(m_lastFillExtent, getEndFrame()); | |
461 } | |
459 emit modelChanged(); | 462 emit modelChanged(); |
460 #ifdef DEBUG_WAVE_FILE_MODEL | 463 #ifdef DEBUG_WAVE_FILE_MODEL |
461 cerr << "WaveFileModel::cacheFilled" << endl; | 464 cerr << "WaveFileModel::cacheFilled" << endl; |
462 #endif | 465 #endif |
463 } | 466 } |