[BS] Small coding project in C

service

The source is here:

https://github.com/andrewoesten/modex/blob/master/modex.c

This program reads audio samples from something called a mod, which is an old audio format, and dumps those samples to wavs. It works great, but it just dumps them to a numbered list, like 000.wav, 001.wav, and so on.

I would like it to export them so that the filenames are like:

00N-Filename.wav

where N is the number it'd normally use and F is the sample name referenced in the source as %-40s on line 77. If there is no name, I just want it to fall back to the original behavior.

Name your price, can compile and test.

Posted Sep 26, 2014, 5:07 PM UTC

17
SuchModBotbeep boop beep•

Background check for u/lostsync:


Age:                                7 years 3 months 24 days
Karma:                              3058
Verified Email:                     
Flair:                              none
Could be Impersonating:             ---
Banned:                             false
Doge sub activity:                  medium

In case you are a new user, please take a look in our wiki to get acquainted with the rules. There are also many helpful tips for staying safe on your journey to the moon!

If you have questions regarding u/SuchModBot or general questions regarding this sub, please message the mods!

1
MrStrabo1/6/5•

I won't have time now, but if no one else picks this up, I might be able to work on it sometime during the weekend.

How does 15000 doge sound?

1
lostsyncOP•

That'd be fine, but I'd have to pay you a good bit more than that.

1
MrStrabo1/6/5•

well..we'll work out numbers if I can get to it :)

1
GusGold5/8/10•

Replace line 59 with:

sprintf(fn, "%02d-%s.wav", i, p_filename);

The output will be:

00N-Filename.mod.wav
1
MrStrabo1/6/5•

Looks like someone already beat me to it. You should tip the man.

1
GusGold5/8/10•

It's not tested at all, but it should work.

1