So the latest version has audio....

Discussion and feedback on Construct 2

Post » Mon Aug 22, 2011 9:38 am

Right, so I got the latest version, thinking I could start adding audio to my HTML 5 game.

The one problem is that I haven't got a clue on how to import audio into my project

Can anyone tell me how to do this?
B
5
G
1
Posts: 23
Reputation: 778

Post » Mon Aug 22, 2011 10:09 am

Right click the sound or music folders in the project bar and click "Import".
Scirra Founder
B
359
S
214
G
72
Posts: 22,948
Reputation: 178,532

Post » Mon Aug 22, 2011 10:58 am

Thanks :D

EDIT - So I did that and imported a wav file, and it came with a failed to convert to ogg error. :(

Why was this D:rymate12342011-08-22 11:01:37
B
5
G
1
Posts: 23
Reputation: 778

Post » Mon Aug 22, 2011 11:25 am

Before you clicked import, what was the format of the WAV file? It should display it in the list. Unfortunately despite the fact WAV files all have the same extension, there's hundreds of different kinds, and the OGG converter only supports certain kinds. Anything which says "PCM" ought to work though.
Scirra Founder
B
359
S
214
G
72
Posts: 22,948
Reputation: 178,532

Post » Mon Aug 22, 2011 12:03 pm

It was a PCM file
B
5
G
1
Posts: 23
Reputation: 778

Post » Mon Aug 22, 2011 12:58 pm

What was the full description? It's always good to provide all the details so we're not left guessing! Maybe upload the file somewhere so I can try myself?
Scirra Founder
B
359
S
214
G
72
Posts: 22,948
Reputation: 178,532

Post » Thu Mar 08, 2012 1:39 am

Resurrecting an old thread, but I figured it may be better than opening a new one. :)

I have run into the same problem. The source WAV file's details are "PCM - mono - 16-bit - 8000 Hz". It fails to convert to OGG. I can send the file per PM if it's a bug and not a case of me missing the obvious (quite likely, it's just my third day with C2!).

(edit: I PM'd you the file, Ashely. Saves a step if it's a bug.)Mivo2012-03-08 01:56:20
B
17
S
4
G
4
Posts: 64
Reputation: 3,396

Post » Thu Mar 08, 2012 2:07 am

I think the OGG encoder simply doesn't support such low frequencies - 8 KHz is pretty darn low. Have you tried using another tool to upsample it to say 44100 Hz?Ashley2012-03-08 02:08:11
Scirra Founder
B
359
S
214
G
72
Posts: 22,948
Reputation: 178,532

Post » Thu Mar 08, 2012 2:39 am

I resampled the sound to 44100 Hz (and stereo), and C2 is now able to convert it correctly. :) (The nice part about learning C2 is that I learn all other sorts of things, like resampling sounds!)
B
17
S
4
G
4
Posts: 64
Reputation: 3,396

Post » Thu Mar 08, 2012 2:49 am

@Mivo: Why not just use a tool that specializes in converting sound files? Audacity it's a great free software that I use to convert sound files to import into C2 without a hitch. VampyricalCurse2012-03-08 02:54:37
B
47
S
10
G
6
Posts: 455
Reputation: 8,326

Next

Return to Construct 2 General

Who is online

Users browsing this forum: supreme676, TRMG, Yura G, zenox98 and 18 guests