comparison data/fileio/WavFileReader.cpp @ 1592:f8e3dcbafb4d bqaudiostream

Implement title/maker in wav readers; extra handling of supported-ness for file types
author Chris Cannam
date Mon, 21 Jan 2019 13:16:17 +0000
parents 954d0cf29ca7
children ce185d4dd408
comparison
equal deleted inserted replaced
1591:6e68bd92ee21 1592:f8e3dcbafb4d
93 } 93 }
94 94
95 if (m_normalisation != Normalisation::None && !m_updating) { 95 if (m_normalisation != Normalisation::None && !m_updating) {
96 m_max = getMax(); 96 m_max = getMax();
97 } 97 }
98
99 const char *str = sf_get_string(m_file, SF_STR_TITLE);
100 if (str) {
101 m_title = str;
102 }
103 str = sf_get_string(m_file, SF_STR_ARTIST);
104 if (str) {
105 m_maker = str;
106 }
98 } 107 }
99 108
100 SVDEBUG << "WavFileReader: Filename " << m_path << ", frame count " << m_frameCount << ", channel count " << m_channelCount << ", sample rate " << m_sampleRate << ", format " << m_fileInfo.format << ", seekable " << m_fileInfo.seekable << " adjusted to " << m_seekable << ", normalisation " << int(m_normalisation) << endl; 109 SVDEBUG << "WavFileReader: Filename " << m_path << ", frame count " << m_frameCount << ", channel count " << m_channelCount << ", sample rate " << m_sampleRate << ", format " << m_fileInfo.format << ", seekable " << m_fileInfo.seekable << " adjusted to " << m_seekable << ", normalisation " << int(m_normalisation) << endl;
101 } 110 }
102 111