Skip to content

Commit 51eb76c

Browse files
committed
Update SoundReplacement.cs
1 parent d65947a commit 51eb76c

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)