Solved

How to use WaveOutSetVolume?

Posted on 2000-02-15
4
1,226 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 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