I have an array of a .wav file like this:
const char down[27624] = { ... }
And I would like to play it as a sound. I understand how to play a file that already exists on the filesystem:
PlaySound(TEXT("sound.wav"), NULL, SND_FILENAME | SND_ASYNC);
but how would I go about playing an array?
EDIT: Don't bother, and write it to a temp file.