mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 21:57:10 +02:00
only debug request sound if there is a network request
This commit is contained in:
parent
cfa2912877
commit
7630aab963
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue