comparison data/fileio/BQAFileReader.cpp @ 1590:2f8ee436e858 bqaudiostream

Merge
author Chris Cannam
date Thu, 17 Jan 2019 17:30:09 +0000
parents b67f5b6a7978
children c9c8c49b22d6
comparison
equal deleted inserted replaced
1589:99afceeb1a45 1590:2f8ee436e858
58 return; 58 return;
59 } 59 }
60 60
61 m_channelCount = int(m_stream->getChannelCount()); 61 m_channelCount = int(m_stream->getChannelCount());
62 m_fileRate = sv_samplerate_t(m_stream->getSampleRate()); 62 m_fileRate = sv_samplerate_t(m_stream->getSampleRate());
63 m_title = QString::fromUtf8(m_stream->getTrackName().c_str());
64 m_maker = QString::fromUtf8(m_stream->getArtistName().c_str());
63 65
64 initialiseDecodeCache(); 66 initialiseDecodeCache();
65 67
66 if (decodeMode == DecodeAtOnce) { 68 if (decodeMode == DecodeAtOnce) {
67 69
105 if (m_reporter) m_reporter->setProgress(100); 107 if (m_reporter) m_reporter->setProgress(100);
106 108
107 m_decodeThread = new DecodeThread(this); 109 m_decodeThread = new DecodeThread(this);
108 m_decodeThread->start(); 110 m_decodeThread->start();
109 } 111 }
110
111 //!!! todo metadata - maker, title, tags
112 } 112 }
113 113
114 BQAFileReader::~BQAFileReader() 114 BQAFileReader::~BQAFileReader()
115 { 115 {
116 if (m_decodeThread) { 116 if (m_decodeThread) {