only debug request sound if there is a network request

This commit is contained in:
Stephen Birarda 2014-11-13 16:18:19 -08:00
parent cfa2912877
commit 7630aab963

View file

@ -33,11 +33,11 @@ SharedSoundPointer SoundCache::getSound(const QUrl& url) {
Q_RETURN_ARG(SharedSoundPointer, result), Q_ARG(const QUrl&, url));
return result;
}
qDebug() << "Requesting sound at" << url.toString() << "from SoundCache";
return getResource(url).staticCast<Sound>();
}
QSharedPointer<Resource> SoundCache::createResource(const QUrl& url, const QSharedPointer<Resource>& fallback,
bool delayLoad, const void* extra) {
bool delayLoad, const void* extra) {
qDebug() << "Requesting sound at" << url.toString();
return QSharedPointer<Resource>(new Sound(url), &Resource::allReferencesCleared);
}