We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96d85a7 commit 4faf408Copy full SHA for 4faf408
1 file changed
GDScriptAudioImport.gd
@@ -64,8 +64,8 @@ func loadfile(filepath):
64
#parrrrseeeeee!!! :D
65
66
var bits_per_sample = 0
67
-
68
- for i in range(0, 100):
+ var i = 0
+ while true:
69
var those4bytes = str(char(bytes[i])+char(bytes[i+1])+char(bytes[i+2])+char(bytes[i+3]))
70
71
if those4bytes == "RIFF":
@@ -136,6 +136,10 @@ func loadfile(filepath):
136
newstream.data = convert_to_16bit(data, bits_per_sample)
137
else:
138
newstream.data = data
139
+
140
+ break # the data will be at the end, end searching here
141
142
+ i += 1
143
# end of parsing
144
#---------------------------
145
0 commit comments