Quantcast
Viewing all articles
Browse latest Browse all 168

How do I pass WAVEFORMATEX to API functions?

In the function waveOutOpen, you need to pass a WAVEFORMATEX, yet if you do Len and LenB on WAVEFORMATEX, you'll notice that LenB is bigger than Len, indicating that the in-memory copy of a WAVEFORMATEX UDT in VB6 is in fact padded (due to the mixture of Integer and Long data types). Giving a padded copy of the structure to an API function will make it crash. Do you have any idea what the best way to go about this is? WAVEFORMATEX is most certainly required for the use of waveOutOpen.

Viewing all articles
Browse latest Browse all 168

Trending Articles