Jump to content


Photo

waveOutSetVolume on the Pantech Duo C810

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Massif

Massif

    Newbie

  • Members
  • Pip
  • 4 posts
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?

  • 0

#2
Massif

Massif

    Newbie

  • Members
  • Pip
  • 4 posts
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.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users