Skip to content

Commit b8a3ce2

Browse files
Merge pull request #2787 from Daneel53/Fix-for-PR-2782-SoundReplacement
Fix SoundReplacement.cs
2 parents d65947a + 51eb76c commit b8a3ce2

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

Assets/Scripts/Utility/AssetInjection/SoundReplacement.cs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,9 @@ private static bool TryImportAudioClip(string name, string extension, bool strea
105105

106106
request.SendWebRequest();
107107

108-
if (streaming)
109-
{
110-
// Synchronous waiting otherwise the whole architecture has to be redone
111-
while (request.downloadedBytes < 128 * 1024) { }
112-
audioClip = downloadHandler.audioClip;
113-
}
114-
else
115-
{
116-
// Synchronous waiting, otherwise the whole architecture has to be redone
117-
while (!request.isDone) { }
118-
audioClip = downloadHandler.audioClip;
119-
}
108+
// Synchronous waiting otherwise the whole architecture has to be redone
109+
while (!request.isDone) { }
110+
audioClip = downloadHandler.audioClip;
120111

121112
return true;
122113
}

0 commit comments

Comments
 (0)