No more audio clipping! (18)

1 Name: ShinseiTom : 2010-06-15 01:26 ID:XLF+vzL1 [Del]

So, on my quest to find something that would convert sound files, I got a decompiler for .jar files and ripped apart SoundEncoder-1.4.jar to see how it was using the ffmpeg and faac.exe files. Using those switches in the command line, I finally got my computer to encode an AAC file that VNDS liked!

Then I got to thinking. "Well, I can't do them ALL by hand, one at a time. It would take months!" So I created a program to mass convert anything ffmpeg can decode into AAC, much like soundencoder is supposed to do. However, I was starting to notice the clipping of words, or footsteps. 4 steps in the original, only 3 in VNDS.

Since I don't know enough about the VNDS source to modify its code, I went and looked around online to see about adding silence to the end of files to the end of files to fix the clipping. The easiest way to do it that I could find was Audacity. Therefore, I installed Audacity and did a test. Well what do you know, no more clipping.

So, is sound clipping still a problem for most people? As I've got working code that can get around that and it's dang fast (at least on a quad-core). It converts pretty much any audio file to .wav, gives instructions on how to use Audacity to mass-add silence to the ends of the new files, then finishes by encoding the .wav files to .aac for VNDS.

Or am I reinventing the wheel due to my computer's stupidity?

2 Name: CXBlackCatXD : 2010-06-15 02:01 ID:0bdW9GUK [Del]

I dunno if you are reinventing the wheel or not, but if that can help me with Planetarian's voice files then I'm all for it xD.

3 Name: ShinseiTom : 2010-06-15 02:11 ID:XLF+vzL1 [Del]

I don't think it fixes the echo I've heard of, but any clipping from the file being cut short is fixed as far as I know. Right now I'm trying to finish up the code so the user doesn't have to do hardly anything.
You happen to know off-hand how to find all the files in a folder in c++?

4 Name: CXBlackCatXD : 2010-06-15 02:19 ID:0bdW9GUK [Del]

Lol I don't even know "Hello World" in C++ on hand xD. (So if anyone sees this thread and knows the answer, now is your time to shine).

5 Name: Anonymous : 2010-06-15 03:50 ID:u9G9uCU+ [Del]

6 Name: Hogan : 2010-06-15 04:00 ID:sMZr2438 [Del]

7 Name: Hogan : 2010-06-15 04:03 ID:sMZr2438 [Del]

aaaand anon bascially answers it before me. Just make sure to check, as readdir(DIR*) also returns '.' and '..', If i remember correctly...

8 Name: ShinseiTom : 2010-06-15 06:33 ID:XLF+vzL1 [Del]

Whoo... ok, well I might have found something that works. I've spent more time coding and messing around on this than I've spent on most of my homework!
Oh well, I'm constantly learning new things. Thanks for the links guys.

9 Name: ShinseiTom : 2010-06-15 12:25 ID:XLF+vzL1 [Del]

Finally. My code is pretty much finished. No real error checking, has no idea what files it's trying to decode/encode, but as long as you have it set up right it works correctly. Too bad I don't know a way to batch add silence without the user opening up a 3rd party program and manually doing it.

Anyway, sound and voices will all work now! And they won't be clipped off at the end. Hooray!

10 Name: CXBlackCatXD : 2010-06-15 16:02 ID:0bdW9GUK [Del]

Congratz xD, hopefully that means we will all have an easier time (all...five of us xD?)

11 Name: ShinseiTom : 2010-06-15 19:33 ID:XLF+vzL1 [Del]

Yep. My program now works 100% as intended. The only problem I have now is Audacity sometimes mutes files. I can't do much about that.

12 Name: Hogan : 2010-06-15 21:27 ID:sMZr2438 [Del]

Awesome. Didn't know audacity had a batch function (never used it)

And as for the silence, a guess theoretically, you could write a program that reads the file into a bytecode string, then alter the end to add silence for a few seconds, and then write out.

no Idea how to do this though, and it's probably a lot more complicated then I can comprehend haha

13 Name: ShinseiTom : 2010-06-15 21:51 ID:XLF+vzL1 [Del]

It's not exactly a batch function, but it can work like one.

I know I've seen code kinda like that... but I'de have to look up the exact specification stuff for .wav or .aac and how to do it and a whole lot of other stuff since I've never messed with it before. It would be complicated, but worth it in the end.

However... I just want to take a break. I coded nonstop for over 13 hours. My concentration can't take much more of that.

Anyway, for those that care, this is the program:
http://www.mediafire.com/?imzrmox5jdd

Be warned, this probably only works in Windows.

14 Name: ShinseiTom : 2010-06-15 21:56 ID:XLF+vzL1 [Del]

Well, duh, the .exe only works in Windows. But even when compiled for linux it probably won't work.

15 Name: Raidosu : 2010-06-20 01:17 ID:hHBV1wYv [Del]

>>13

Errors in Windows XP SP3 with, 'application configuration is incorrect'.

Or it may just be me.

16 Name: ShinseiTom : 2010-06-20 03:46 ID:BAQIL9pX [Del]

Alright, I'm assuming that's 32 bit, right?
....
Muahahaha, ok, so I know what's wrong. Kinda sucks not having multiple computers for testing. Plus not being used to coding with VC++ dependencies and stuff.
Try this: http://www.mediafire.com/?zyyxyzyyqm2

It's exactly the same as the first one, just compiled as release instead of the debug version (doh). If that doesn't work directly, you might need to install vcredist_x86 or x64 from microsoft. Though I'm sure most people have that.

17 Name: Raidosu : 2010-06-20 05:07 ID:hHBV1wYv [Del]

It's working perfectly, thanks for fixing it.

18 Name: ShinseiTom : 2010-06-20 05:43 ID:BAQIL9pX [Del]

You're welcome. It was my mistake.

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification:
Image: