We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4faf408 commit 5a2ecb3Copy full SHA for 5a2ecb3
1 file changed
GDScriptAudioImport.gd
@@ -66,6 +66,10 @@ func loadfile(filepath):
66
var bits_per_sample = 0
67
var i = 0
68
while true:
69
+ if i >= len(bytes) - 4: # Failsafe, if there is no data bytes
70
+ print("Data byte not found")
71
+ break
72
+
73
var those4bytes = str(char(bytes[i])+char(bytes[i+1])+char(bytes[i+2])+char(bytes[i+3]))
74
75
if those4bytes == "RIFF":
0 commit comments