I would like to eventually build a rhythm game. Many game programmers want to work on the graphics first, but without the audio system, it's useless.

This is something that I've been working on for a while. I just got stuck a week ago, and it doesn't help that for years, my home is where I shut down and unwind. I'll end up rather playing video games than making it. This is where the Game Jam came in handy. Being around people working on games and in an office building helped push me forward.

I got stuck with event timings, and I over-engineered the solution. I had only half of the data I needed, and it wasn't correct.

You may have seen me say to myself "Oh man. What a mess" after I loaded up Visual Studio. Before the Jam, I did a bunch of hacks to try to bludgeon the processor to give me the right data. At the Jam, I rolled up my sleeves and re-did a good chunk the script processor in a more proper manner. I spent 4-8 hours fixing this on Saturday. Maybe I should have just hacked it together originally. On Saturday, I finished the data massaging / filtering. The result of the data massaging is that I don't have to work too hard to use it in any other programming language / platform.

On Sunday, most of my time was just trying to read a .WAV file. I figured, "keep it simple"... yeah... It turns out that there's not many definitive guides out there on how to do that.

Progress: .WAV file header: SUCCESS, though this part currently is hacked together .WAV file playback: WIP

Built With

  • microsoft-visual-c++-2012
Share this project:
×

Updates

Joe Plante posted an update

So, Microsoft has a WAVEFORMATEX struct, which is REALLY nice. However, if you use that Data Structure to read in .WAV data, you'll get the wrong data. There's a 20-byte or so RIFF header that needs to be handled, and I... erm... skipped that data chunk for now.

There's a field called cbSize that's 2 bytes, and if you have a PCM .WAV, like I do, you need to rewind the file stream by 2 bytes if you read the file header. Luckily, after "data" and the file size, I'll be able to get to the raw gooey insides of this beautiful file format

Log in or sign up for Devpost to join the conversation.