Solved

How to use WaveOutSetVolume?

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert Jpg /PNG To GIF 5 136
Mobile Keyboard covers the display of the TMemo 3 87
Unique identifier on a terminal server (rdp) 4 54
Tvertscrollbox like a whatsapp layout 5 28
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 I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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