Mercurial > hg > svcore
diff data/fileio/OggVorbisFileReader.cpp @ 333:1afaf98dbf11
* Factor out uses of "Sonic Visualiser" in "common" code to applicationName()
* Add ability to show work title + artist in top-left of pane (thinking of Vect
but may be useful in SV in future)
* A few other generalisations useful for Vect
author | Chris Cannam |
---|---|
date | Fri, 09 Nov 2007 17:46:58 +0000 |
parents | 1d656dcda8ef |
children | b92513201610 |
line wrap: on
line diff
--- a/data/fileio/OggVorbisFileReader.cpp Wed Nov 07 14:53:12 2007 +0000 +++ b/data/fileio/OggVorbisFileReader.cpp Fri Nov 09 17:46:58 2007 +0000 @@ -173,10 +173,19 @@ OggVorbisFileReader *reader = (OggVorbisFileReader *)data; if (!reader->m_commentsRead) { - const FishSoundComment *comment = fish_sound_comment_first_byname - (fs, "TITLE"); - if (comment && comment->value) { - reader->m_title = QString::fromUtf8(comment->value); + { + const FishSoundComment *comment = fish_sound_comment_first_byname + (fs, "TITLE"); + if (comment && comment->value) { + reader->m_title = QString::fromUtf8(comment->value); + } + } + { + const FishSoundComment *comment = fish_sound_comment_first_byname + (fs, "ARTIST"); + if (comment && comment->value) { + reader->m_maker = QString::fromUtf8(comment->value); + } } reader->m_commentsRead = true; }