Importing wave files freezes Construct

Bugs will be moved here once resolved.

Post » Sun Aug 12, 2012 9:12 pm

I've been using Audacity to edit and export files to Construct for a while now, and today I exported two .Wav files that froze Construct on import. After importing several more times to test, I found that only those two sound files were responsible.

All the sounds play normally in media players, the original audio files import to Construct fine, and even copies of the broken audio files import. I'm on Windows 7, most recent drivers and stable r95 construct, tested on an empty project with no third-party plugins. Might these be corrupt audio files, or does Construct not read them properly?

https://dl.dropbox.com/u/53961988/71_bad.wav
https://dl.dropbox.com/u/53961988/84_bad.wav
https://dl.dropbox.com/u/53961988/71_edited.wav
https://dl.dropbox.com/u/53961988/84_edited.wav
B
19
S
5
G
1
Posts: 104
Reputation: 2,920

Post » Tue Aug 14, 2012 5:45 pm

c2 importer seems to have a problem with small files, add a little bit of silence at the end (probably up to a second time total wav length) and it should be ok.
B
81
S
50
G
10
Posts: 555
Reputation: 13,009

Post » Tue Aug 14, 2012 8:32 pm

I think it's because the bad sounds are at non-standard sample rates (the first is 16 KHz). The bug is actually in our AAC encoder which we can't really fix - it just hangs when given an unsupported file which sucks, and we can't really tell if it's just taking a very long time or if it's really hung. Try encoding everything to 44.1 KHz first. I'll see if we can add some kind of workaround in the editor so it won't even try to encode unsupported files.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Tue Aug 14, 2012 8:33 pm

Yes bad sounds made C2 freeze, i did it too
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Wed Aug 15, 2012 7:13 pm

Thanks for the feedback!
B
19
S
5
G
1
Posts: 104
Reputation: 2,920

Post » Sun Aug 26, 2012 5:59 pm

I'm still having this problem in r98. I can import the wav just fine, but when I try to play it, it kills all audio in the layout. I've tried encoding the wav files from Audacity, MediaMonkey and LMMS. They are all encoded at 44.1khz.

edit: firebug doesn't show any script errors but the polls to the server are failing, and the editor can't relaunch the demo server until it's been closed and reopened.gesangbaer2012-08-26 18:14:29
B
2
Posts: 1
Reputation: 252

Post » Sun Aug 26, 2012 7:36 pm

i had trouble with 24-bit FLAC files. had to use 16-bit. great that i can use flac though.
B
6
Posts: 10
Reputation: 1,052

Post » Tue Aug 28, 2012 4:05 pm

@gesangbaer - can you post a separate bug report with a .capx?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Mon Oct 14, 2013 7:54 pm

Old thread, but since I just ran into this problem... I will confirm that there is indeed a problem with small audio files.

Sample rate didn't matter-- what ended up letting me finally import the audio in the end without C2 freezing up was adding 1 second of silence at the end of the file so the file was at least 1 second long.

Posting in case that helps figure out a way to fix this bug
B
3
Posts: 2
Reputation: 179

Post » Mon Oct 14, 2013 8:00 pm

er, sorry, it was still much less than a second.
Added 0.1 seconds of silence so the sound was at least 0.1 of a second long
B
3
Posts: 2
Reputation: 179

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests