Skip to content

Commit bb23612

Browse files
committed
Hack for runtime loading of WAV files on windows
It's broken on all platforms
1 parent bf53071 commit bb23612

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/Scripts/Utility/AssetInjection/SoundReplacement.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public static string SoundPath
4646
/// <returns>True if sound is found.</returns>
4747
public static bool TryImportSound(SoundClips sound, out AudioClip audioClip)
4848
{
49-
return TryImportAudioClip(sound.ToString(), ".wav", false, out audioClip);
49+
// For some inane reason loading .wav files unstreamed is completely broken.
50+
return TryImportAudioClip(sound.ToString(), ".wav", true, out audioClip);
5051
}
5152

5253
/// <summary>

0 commit comments

Comments
 (0)