comparison data/fileio/OggVorbisFileReader.cpp @ 524:12608139f6bc

* minor output tweaks
author Chris Cannam
date Fri, 12 Dec 2008 16:13:19 +0000
parents 3f68eab92857
children dfc4dd561bb6
comparison
equal deleted inserted replaced
523:3f68eab92857 524:12608139f6bc
27 #include <fcntl.h> 27 #include <fcntl.h>
28 #include <cmath> 28 #include <cmath>
29 29
30 #include <QFileInfo> 30 #include <QFileInfo>
31 31
32 static int instances = 0; 32 //static int instances = 0;
33 33
34 OggVorbisFileReader::OggVorbisFileReader(FileSource source, 34 OggVorbisFileReader::OggVorbisFileReader(FileSource source,
35 DecodeMode decodeMode, 35 DecodeMode decodeMode,
36 CacheMode mode, 36 CacheMode mode,
37 size_t targetRate, 37 size_t targetRate,
100 } 100 }
101 } 101 }
102 102
103 OggVorbisFileReader::~OggVorbisFileReader() 103 OggVorbisFileReader::~OggVorbisFileReader()
104 { 104 {
105 std::cerr << "OggVorbisFileReader::~OggVorbisFileReader(" << m_path.toLocal8Bit().data() << "): now have " << (--instances) << " instances" << std::endl; 105 // std::cerr << "OggVorbisFileReader::~OggVorbisFileReader(" << m_path.toLocal8Bit().data() << "): now have " << (--instances) << " instances" << std::endl;
106 if (m_decodeThread) { 106 if (m_decodeThread) {
107 m_cancelled = true; 107 m_cancelled = true;
108 m_decodeThread->wait(); 108 m_decodeThread->wait();
109 delete m_decodeThread; 109 delete m_decodeThread;
110 } 110 }