Audio Trouble

Get help using Construct 2

Post » Thu Dec 01, 2011 10:40 pm

I have an mp3 file that I would like to play, but I am running into some trouble with C2's Ogg & AAC converter. Unfortunately I only have the file in mp3 format, so can't try importing it as a wav.

I did a search and couldn't find anything that helped.

The file I want to import:
http://incompetech.com/m/c/royalty-free/index.html?keywords=heartwarming&Search=Search

The error I get:


If I can't get it to work in C2 I'll have to find an external converter but it would be much more convenient to just import directly.

Any ideas what I should try? Can anybody try importing the mp3 into their project and tell me if it works?wgfunstorm2011-12-01 22:41:16
B
22
S
9
G
5
Posts: 122
Reputation: 5,386

Post » Thu Dec 01, 2011 10:47 pm

Have you tried converting the mp3 file into wav in an external software (audacity for example) and importing the wav in C2 so C2 could handle the final conversion ?

Mp3 is an unsupported file format for C2.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Thu Dec 01, 2011 11:13 pm

Thanks, but I'm still a little confused.

There must be SOME mp3 support because C2 was able to convert my file from mp3->aac. I tested the converted aac file in Winamp and it plays fine.

I know that C2 can't PLAY mp3, it's just the converting I'm interested in. I'd really like to avoid complicating my pipeline with audacity etc since I'm not the audio guy and all the placeholder files I'm adding will be replaced by my audio pro later (who will handle conversion for those).

Still hopeful I'll find a way to do it directly in C2 wgfunstorm2011-12-01 23:15:13
B
22
S
9
G
5
Posts: 122
Reputation: 5,386

Post » Fri Dec 02, 2011 12:29 am

im having similar trouble, i finally managed to import some music files and play them on the game, but i still cant get certain wav files to convert to ogg the wavs are mono files, open fine and play fine in audacity and in media player

B
2
G
1
Posts: 8
Reputation: 646

Post » Fri Dec 02, 2011 1:10 am

You should get in to the habit of only importing PCM .wav files to Construct 2. I've just recently added a relevant article to the manual on the Import Audio dialog which has relevant info.

The AAC encoder supports the .mp3 format, but the Ogg Vorbis encoder does not support it, so it only gets imported as AAC. The article I linked to also describes how .m4a is a backup to an .ogg file (so .oggs take priority) which is why you can't select just an .m4a in the event system.

Construct 2 could decode MP3 and re-encode it to .ogg but this degrades quality, and encoders are complicated, difficult to deal with, and if used in commercial software like Construct 2 sometimes incurs some hefty fees for us, so we just totally avoid it. You should use your own audio encoding software to decode your MP3 to .wav if you must, but it's really best to just import PCM .wav files all the time for everything. I nearly took out the option to import formats like MP3 at all, but I thought we may as well leave it in if the encoder is capable.Ashley2011-12-02 01:12:49
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Dec 02, 2011 1:43 am

Okay, thanks for the insight. I hope you become successful enough that this conversion can be included some day. Especially since C2 is otherwise so beginner-friendly that I think it would be a valuable addition not having to go through another program.

I always use WAV when possible.. but sometimes it's simply not an option because I don't have access to a WAV version.
B
22
S
9
G
5
Posts: 122
Reputation: 5,386

Post » Fri Dec 02, 2011 10:18 am

As mentioned in another thread, there's a free program called Format Factory. That converts one thing into another, I use it all the time. :)
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Fri Dec 02, 2011 1:40 pm

Thanks, look promising I'll download and give it a go!
B
22
S
9
G
5
Posts: 122
Reputation: 5,386

Post » Fri Dec 02, 2011 5:05 pm

I always use audio player Aimp (free analog of winamp, but better). He can convert any of audio-format to any.
B
4
S
1
G
1
Posts: 36
Reputation: 949


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, Lancifer and 24 guests