SoundSourceProxy::SoundSourceProxy(const TrackPointer& pTrack) : m_pTrack(pTrack), m_url(getCanonicalUrlForTrack(pTrack.data())), m_soundSourceProviderRegistrations(findSoundSourceProviderRegistrations(m_url)), m_soundSourceProviderRegistrationIndex(0) { initSoundSource(); }
SoundSourceProxy::SoundSourceProxy( TrackPointer pTrack) : m_pTrack(std::move(pTrack)), m_url(getCanonicalUrlForTrack(m_pTrack.get())), m_soundSourceProviderRegistrations(findSoundSourceProviderRegistrations(m_url)), m_soundSourceProviderRegistrationIndex(0) { initSoundSource(); }
//static Track::ExportMetadataResult SoundSourceProxy::exportTrackMetadataBeforeSaving(Track* pTrack) { DEBUG_ASSERT(pTrack); mixxx::MetadataSourcePointer pMetadataSource = SoundSourceProxy(getCanonicalUrlForTrack(pTrack)).m_pSoundSource; if (pMetadataSource) { return pTrack->exportMetadata(pMetadataSource); } else { kLogger.warning() << "Unable to export track metadata into file" << pTrack->getLocation(); return Track::ExportMetadataResult::Skipped; } }