Solved

Volume setting in C++ Builder  while sound playing

Posted on 2002-07-01
2
1,165 Views
Last Modified: 2008-03-17
In C++ Builder there is a component TMediaPlayer. Unfortunately I couldn't find in it any method  to set a volume of played sound. How could be possible to do this programatically ?
0
Comment
Question by:rainette
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
Ber earned 100 total points
ID: 7123288
There is an example of setting the wave out volume using the waveOutSetVolume API here... its about half way down the page, you may find the entire page intresting...

http://developer.grup.com.tr/language/cbuilder/book2/cpb/9808/cpb9881.htm

You could also try the auxsetvolume API...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/mmfunc_3eat.asp

Cheers...
Ber...
0
 
LVL 2

Expert Comment

by:Ber
ID: 7170550
Cheers...
Ber...
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now