Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21348

PlaySound API + SND_MEMORY + VB6 don't work well together?

$
0
0
Ok, so I've loaded the entire contents of a WAV file (headers and EVERYTHING) into a byte array and am now trying to get the PlaySound API calle to play it, and I'm using the SND_MEMORY flag as I should to get it to look to an in-memory array for the data (instead of a file as is its default opperation). And I've read this is what I need to do. But it's not working. Could you provide some insight as to WHY? Does PlaySound with SND_MEMORY flag not work in VB6 and instead require .Net to use SND_MEMORY properly? Or is there something else I need to do?

Please help me. Thanks.

Viewing all articles
Browse latest Browse all 21348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>