Mercurial > hg > svcore
diff data/fileio/WavFileReader.cpp @ 1605:d83ab62cdc28
Merge from branch bqaudiostream
author | Chris Cannam |
---|---|
date | Wed, 30 Jan 2019 14:57:12 +0000 |
parents | ce185d4dd408 |
children | 14747f24ad04 |
line wrap: on
line diff
--- a/data/fileio/WavFileReader.cpp Wed Jan 09 15:24:38 2019 +0000 +++ b/data/fileio/WavFileReader.cpp Wed Jan 30 14:57:12 2019 +0000 @@ -95,6 +95,15 @@ if (m_normalisation != Normalisation::None && !m_updating) { m_max = getMax(); } + + const char *str = sf_get_string(m_file, SF_STR_TITLE); + if (str) { + m_title = str; + } + str = sf_get_string(m_file, SF_STR_ARTIST); + if (str) { + m_maker = str; + } } 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;