Solved

Control sound volmun

Posted on 2000-03-02
1
127 Views
Last Modified: 2010-04-04
How to control sound volmun?
0
Comment
Question by:cookey
1 Comment
 
LVL 17

Accepted Solution

by:
inthe earned 20 total points
Comment Utility
well for tmediaplayer you can do stuff like:

WaveOutSetVolume(hwo: Integer; dwVolume: Cardinal);

hwo is MediaPlayer1.DeviceId,

example:                           Right\/ | Left\/
dwVolume for Full L+R = $FFFFFFFF
dwVolume for Full L no R = $0000FFFF
dwVolume for Full R no L = $FFFF0000
dwVolume for 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.

WaveOutGetVolume retrieves the volume settings.

see here:
http://www.bhnet.com.br/~simonet/howtoprojs.htm
at bottom of page for a demo project showing these stuffs.
Regards barry
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

15 Experts available now in Live!

Get 1:1 Help Now