summaryrefslogtreecommitdiffstats
path: root/src/sources/soundsourcemodplug.cpp
diff options
context:
space:
mode:
authorUwe Klotz <uwe_klotz@web.de>2017-12-05 19:10:19 +0100
committerUwe Klotz <uwe_klotz@web.de>2017-12-05 19:10:19 +0100
commite8fc77afe55910aaab379125212c2445048a501f (patch)
tree79d28c00da1824e06b4c0bfb04b5386f5975cde8 /src/sources/soundsourcemodplug.cpp
parent84778143a6267e9648ee569ae3e4fceb13463968 (diff)
Do not consider audio properties when exporting metadata
Diffstat (limited to 'src/sources/soundsourcemodplug.cpp')
-rw-r--r--src/sources/soundsourcemodplug.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sources/soundsourcemodplug.cpp b/src/sources/soundsourcemodplug.cpp
index 8f918de7a9..4938e8b9ac 100644
--- a/src/sources/soundsourcemodplug.cpp
+++ b/src/sources/soundsourcemodplug.cpp
@@ -82,8 +82,10 @@ SoundSourceModPlug::importTrackMetadataAndCoverImage(
pTrackMetadata->refTrackInfo().setComment(QString(ModPlug::ModPlug_GetMessage(pModFile)));
pTrackMetadata->refTrackInfo().setTitle(QString(ModPlug::ModPlug_GetName(pModFile)));
- pTrackMetadata->refTrackInfo().setDuration(Duration::fromMillis(ModPlug::ModPlug_GetLength(pModFile)));
- pTrackMetadata->refTrackInfo().setBitrate(Bitrate(8)); // not really, but fill in something...
+ pTrackMetadata->setChannels(ChannelCount(kChannelCount));
+ pTrackMetadata->setSampleRate(SampleRate(kSampleRate));
+ pTrackMetadata->setDuration(Duration::fromMillis(ModPlug::ModPlug_GetLength(pModFile)));
+ pTrackMetadata->setBitrate(Bitrate(8)); // not really, but fill in something...
ModPlug::ModPlug_Unload(pModFile);
return std::make_pair(ImportResult::Succeeded, QFileInfo(modFile).lastModified());