• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1381
  • Last Modified:

How to use WaveOutSetVolume?

Hi,
can you tell me
how to change the WaveOut
balance using WaveOutSetVolume?
0
kaloyan
Asked:
kaloyan
  • 2
1 Solution
 
intheCommented:
hI,

WaveOutSetVolume(hwo: Integer; dwVolume: Cardinal);

hwo is MediaPlayers DeviceId,

example:                          
dwVolume Full L+R = $FFFFFFFF
dwVolume Full L no R = $0000FFFF
dwVolume Full R no L = $FFFF0000
dwVolume no sound = $00000000

notice that the hi-order word refers to right channel and
lo-order word to left channel...
If use to set a mono soundcard, u specify the lo-order word
only.

so something like:
waveOutSetVolume(Mediaplayer1.DeviceID, $FFFF div 2);

should do it..
Regards Barry
0
 
bryan7Commented:
listenning
0
 
bryan7Commented:
listenning
0
 
kaloyanAuthor Commented:
Thanks!!!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now