wavOutSetVolume_(hwo, dwVolume) question...
Posted: Sun Sep 08, 2024 9:57 pm
Can anyone help me with loading the dwVolume variable with the right DWORD to set the left and right channel volumes to -100 100 or 40 -40 for example. How do I come up with the DWORD and how do I express it with the dwVolume variable?
I'm looking at the C code I think (mmeapi.h) and I know I need the WAVECAPS_LRVOLUME structure. But this is above my paygrade. Any example or info would be most welcome and helpful. I'm trying to figure it out! So far, no luck. Thx!
I'm using: waveOutGetVolume_(hwaveOut, @pdwVolume) to get the volume successfully (I think), and the debugger shows a pdwVolume value of 710609796 I'm not sure how to view that as something useful. The documentation says 0x4000 is an example of what pdwVolume is returning.
I'm looking at the C code I think (mmeapi.h) and I know I need the WAVECAPS_LRVOLUME structure. But this is above my paygrade. Any example or info would be most welcome and helpful. I'm trying to figure it out! So far, no luck. Thx!
I'm using: waveOutGetVolume_(hwaveOut, @pdwVolume) to get the volume successfully (I think), and the debugger shows a pdwVolume value of 710609796 I'm not sure how to view that as something useful. The documentation says 0x4000 is an example of what pdwVolume is returning.