comparison data/fileio/BQAFileReader.cpp @ 1587:b67f5b6a7978 bqaudiostream

Request metadata from bq audio stream
author Chris Cannam
date Tue, 15 Jan 2019 16:43:23 +0000
parents ff18abb88563
children c9c8c49b22d6
comparison
equal deleted inserted replaced
1584:ff18abb88563 1587:b67f5b6a7978
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) {