Solved

Volume setting in C++ Builder  while sound playing

Posted on 2002-07-01
2
1,204 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
[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
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

Independent Software Vendors: 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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

707 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