Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1234
  • Last Modified:

Volume setting in C++ Builder while sound playing

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
rainette
Asked:
rainette
  • 2
1 Solution
 
BerCommented:
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
 
BerCommented:
Cheers...
Ber...
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now