Solved

How to use WaveOutSetVolume?

Posted on 2000-02-15
4
1,282 Views
Last Modified: 2008-03-10
Hi,
can you tell me
how to change the WaveOut
balance using WaveOutSetVolume?
0
Comment
Question by:kaloyan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 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