Skip to content

Instantly share code, notes, and snippets.

View sujang958's full-sized avatar
🩸
dead grass

Songhun Cho sujang958

🩸
dead grass
View GitHub Profile
// Simple example code to load a Wav file and play it with WASAPI
// This is NOT complete Wav loading code. It is a barebones example
// that makes a lot of assumptions, see the assert() calls for details
//
// References:
// http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE.html
// Handmade Hero Day 138: Loading WAV Files
#include <windows.h>