play raw .wav files with playsound()

Hey!
I wanted to ask, is it possible to use PlaySound() function with somehow stored in an integer 3-8 sec sound?
i mean it would be something like this, you use some sort of program that could take the .wav file, convert it to something like ("101010101000101010010101"),
you store it like this:
int wSound = "100101010010010100101010";
and you could play it using PlaySound something like this:
PlaySound(wSound,NULL,SND_FILENAME|SND_ASYNC);
OR:
PlaySound(("1001010100001111011"),NULL,SND_FILENAME|SND_ASYNC);

So is it possible?
Topic archived. No new replies allowed.