Jump to content

waveOutSetVolume on the Pantech Duo C810


Guest Massif

Recommended Posts

Guest Massif

I'm trying to change the volume for MIDI audio on the Pantech C810. However, no matter what I set this value to, it plays at the loudest volume. If I set it to 0 it still plays loudly, but it gets choppy.

Anyone experienced the same problem?

Link to comment
Share on other sites

Guest Massif

I got it working. I was using SndPlayAsync(hSound, 1); to play my sound when I should have been using SndPlayAsync(hSound, 0); Then I just set the volume to

0x00000FFF | ( 1 / << 12)

0x00000FFF | ( 2 / << 12)

...

0x00000FFF | ( 15 / << 12)

and it gives me a good range of volume levels.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.