Mod Archive Forums

Community => Project / Coder's Corner => Topic started by: Eagle on September 27, 2006, 13:03:59

Title: WAV Header specifications
Post by: Eagle on September 27, 2006, 13:03:59
I am programming a few console programs that makes WAVE audio. However, I don't know anything about sample headers (nor do I have much luck on finding any) and all my samples are loaded into ModPlug Tracker as pure audio data after a manual repairing configuration while other programs simply terminate.

Basicly, I need some documentation that explains the binary offsets of the WAVE header and what those bytes do. Then you may see a nice GUI chip editor in the future and I may start to hex-edit my samples more effectivelly. :)
Title: WAV Header specifications
Post by: Saga Musix on September 28, 2006, 21:04:19
you can have a look at the sourcecode of my program vChip (i bet you already know it). there is somewhere the structure of the wav header in a subprogram.
Title: WAV Header specifications
Post by: Eagle on September 29, 2006, 09:58:38
Yeah, I could do that. :)

However, I still need to know how the WAVE Header works. But I guess I could still use your source code to figure out roughly how WAVE works. Although, I'm not a fan of scanning pages of codes I have not written myself or lacks comments.

Websearches gives little results. Maybe if I check http://www.programmersheaven.com?
Title: WAV Header specifications
Post by: Eagle on September 29, 2006, 10:06:57
Yup, checking http://www.programmersheaven.com was a good idea. Just like when I needed to find out how to program a MOD player (which I currently can program a simple console program that reads in sample names and other simple text info at the moment), I found the kind of documentation I needed. :thumbup:
Title: WAV Header specifications
Post by: Saga Musix on September 29, 2006, 21:08:06
well, i didn't write the WAV spaces myself, too. they are from an old QBasic program and i'm quite happy with em.