Solved

How to use WaveOutSetVolume?

Posted on 2000-02-15
4
1,219 Views
Last Modified: 2008-03-10
Hi,
can you tell me
how to change the WaveOut
balance using WaveOutSetVolume?
0
Comment
Question by:kaloyan
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 10 total points
ID: 2523916
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
 
LVL 3

Expert Comment

by:bryan7
ID: 2528723
listenning
0
 
LVL 3

Expert Comment

by:bryan7
ID: 2528725
listenning
0
 

Author Comment

by:kaloyan
ID: 2531897
Thanks!!!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now