Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

RAW audio files

Name: Anonymous 2011-09-16 11:16

I extracted audio files from Heroes IV video game. But they all RAW and every file has own format: some 8-bit, some 16-bit unsigned, some 16-bit signed big-endian. Are there a way to guess audio format from content? Preferably non-calculus based.

Name: Anonymous 2011-09-16 11:20

Yuyuko

Name: Anonymous 2011-09-16 11:21

That's an interesting problem. The only thing that comes to mind for me is to have an ideal of an acceptable range of values for the frequencies in the audio, and then calculate some of the approximate frequencies prevalent in the audio clip, when interpreting the clip as of various formats, and then selecting the format that yields the most reasonable frequency range.

Name: tdavis 2011-09-16 11:29

Sound, in LoseThos will function with just PC speaker.  I'd like frequency and waveforms.  It had HDAudio support, but not likely to work.  Tough love might be limiting to just PC speaker.

The songs I've written are a significant asset.  They are single-voice and there is support for an elegant single-voice musical notation.  I'm convinced single-voice music is the way to go.

You have to experience the pleasure of how simple, easy and elegant music is in LoseThos, to appreciate it.

You can make a .SND file to export.  I chose SND because it is raw waveforms.  It's limited to 8000Hz.

LoseThos has buffer-based HDAudio support for recording and playing-back, but it's not very finalized.  It seems impossible that it will work on very many machines.  Might be wise to eliminate it.

Name: Anonymous 2011-09-16 11:34

>>4
Die faggot.

Name: Anonymous 2011-09-16 11:39

>>3
Nice, but it seems Audacity's src/import/RawAudioGuess.cpp does much simpler. Open source quality?

Name: Anonymous 2011-09-16 11:43

And what about guessing RAW graphics format Width/Height?

Name: Anonymous 2011-09-16 12:25

>>6

Cool, yeah open source quality indeed.

Name: FrozenVoid 2011-09-16 12:47

Why can't you just see what is the format game loads? It probably has a routine or list where all files are labeled with their format code.




orbis terrarum delenda est

Name: Anonymous 2011-09-16 18:01

>>9
1. I dont have Windows to run this game.
2. Guesssing is a more general method.

Name: Anonymous 2011-09-16 18:05

>>10
Have you tried the file command?

Name: Anonymous 2011-09-16 18:27

>>11
http://en.wikipedia.org/wiki/Raw_audio_format
RAW Audio file does not include any header information (sampling rate, bit depth, endian, or number of channels).

Name: Anonymous 2011-09-16 18:37

Just open them inside some software that claims to play any audio file and get the properties from there. Try Reaper.

Name: Anonymous 2011-09-16 18:43

>>13
Are you crazy? There is a bazillion of them!

Name: Anonymous 2011-09-16 20:29

>>14
That's more sane than >>1's request of no calculus. >>1's request cannot be done while >>13 is quite possible.

Name: Anonymous 2011-09-16 20:37

>>15
request of no calculus. >>1's request cannot be done
Cant we invent an alternative to calculus, that wont depent on Infinty?

Name: Anonymous 2011-09-16 21:08

>>16
People with your ideology would have invented something by now if it was feasible. The fact that it doesn't exist today suggests that the concept of infinite sets is sound as evidenced by our ability to use the ideas of calculus and infinite sets to model our observations of reality.

Name: Anonymous 2011-09-16 21:31

>>17
Lisp OS doesnt exist today. Does that means, that Unix's C/C++ is the only way?

Name: Anonymous 2011-09-16 21:48

>>18
That's non sequitur. Try again.

Name: Anonymous 2011-09-16 21:55

>>19
Your answer shows that you're out of viable arguments. I will interpret it as your surrender.

Name: Anonymous 2011-09-17 0:22

http://libtiff.maptools.org/man/raw2tiff.1.html
raw2tiff can guess image width and height in case one or both of these parameters are not specified. If you omit one of those parameters, the complementary one will be calculated based on the file size (taking into account header size, number of bands and data type). If you omit both parameters, the statistical approach will be used. Utility will compute correlation coefficient between two lines at the image center using several appropriate line sizes and the highest absolute value of the coefficient will indicate the right line size. That is why you should be cautious with the very large images, because guessing process may take a while (depending on your system performance). Of course, the utility can’t guess the header size, number of bands and data type, so it should be specified manually. If you don’t know anything about your image, just try with the several combinations of those options.

There is no magic, it is just a mathematical statistics, so it can be wrong in some cases.

Name: Anonymous 2011-09-17 0:39

>>20
What >>17-sama means is: http://zombo.com/

Name: Anonymous 2011-09-17 0:48

>>1
What's wrong with calculus? Is your mind too feeble to comprehend such basic things?

Name: Anonymous 2011-09-17 2:15

>>23
Long story short, he doesn't believe in the concepts of Zermelo–Fraenkel set theory and anything that depends upon them, such as calculus. Why? He rejects religion and he believes that set theory is a zionist conspiracy to turn mathematics into religion.

Name: Anonymous 2011-09-17 5:31

Also, it seems that russian modding comunity is full greedy retards. Nobody of them want to share heroes 4 map file formats (they reversed it to create random map generator) or executable memory mappings. Does this apply to modding scene in general or only to russian modding scene?

Name: Anonymous 2011-09-17 6:13

>>25
I'd say the general modding scene is like that. There is prestige in reversing hidden knowledge and many modders use their skills as a way to signal their superior intelligence rather than using those skills to uncover knowledge for society's sake.

Name: Anonymous 2011-09-17 6:16

>>26
Basically acting like /prog/-like elitist cunts.

Name: Anonymous 2011-09-17 6:28

>>26
What about Paul Siramy (who published open source diablo 2 engine) or Exult team (who reversed ultima games)?

Name: Anonymous 2011-09-17 6:41

>>27
I publish my source codes... wait! I have no source code!!!

Name: FrozenVoid 2011-09-17 7:27

>(who published open source diablo 2 engine)
He didn't. he just reversed engineered parts of d2.



orbis terrarum delenda est

Name: Anonymous 2011-09-17 7:59

>>30
His code correctly displays all diablo 2 content. Everything else is in plain text files. You can add a few Lisp scripts to implement game logic, or use it as a skin for nethack.

Name: Anonymous 2011-09-17 8:29

>>28
I suspect their motivation for doing that is to contribute to their communities for pleasure and prestige. This is certainly my motivation when I publish software patches to free software project maintainers.

Name: Anonymous 2011-09-17 8:37

>>32
They can keep code for themselves and act like complete jerks (the way russian coders do).

Name: Anonymous 2011-09-17 12:17

>>32
The Pleasure of Contributing to Communities

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List