Solved

Volume setting in C++ Builder  while sound playing

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

856 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