Solved

Setting volume for CD/Mediaplayer?

Posted on 1998-06-20
8
169 Views
Last Modified: 2010-04-04
How can I change the volume for all kinds of sounds? *.wav and Audio-CDs? The TMediaPlayer does not have properties or methods for that. Too bad!

I probably need a WinAPI call but don't know which one.

Any ideas?

btw: Would be nice to get the current volume settings as well to warn the user if he's setting an alarm with sound turned off or very low...
0
Comment
Question by:Ronald112197
[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
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 3

Expert Comment

by:Matvey
ID: 1354504
There are some components vor all volume settings like you see in the windows tool - master, wav, midi, CD-Audio etc.

You have a component among some others in Gramy collection: http://web.access.net.au/%7Egchandle/

And I think you got one in the RX lib: http://rx.unionjv.ru

Cheers and good luck
--Matvey

PS these components come with sources so you can see what API calls they make...
0
 
LVL 2

Expert Comment

by:hrizal
ID: 1354505
0
 
LVL 2

Author Comment

by:Ronald112197
ID: 1354506
Sorry guys: None of these seem to work in Windows NT - one of them explicitly says so, the other one simply doesn't :-((

P.S.: Sorry for being so slow... My e-mail address changed and I don't know where to change it here...
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1354507
Hi Ronald,

look at http://www.delphipages.com/ and search for volume.

Zif.
0
 
LVL 3

Expert Comment

by:Matvey
ID: 1354508
Everybidy, I think I found the source of the problem:

The components we all found use the same function to set volume - auxSetVolume (look in Win32s.hlp).
I'm only not sure about Tom's last component because sources aren't included, but it says something like "Component to control the aux devices on the PC".
I guess that NT just doesn't supports this function, though it works perfectly in Win95.

I've found another possible answere, though I'm not sure how to use it:
If you look in the same old Win32s.hlp, you can find the value "MCIWndSetVolume". The help calls this thing a macro, and I don't really know how to use macros. I found an ActiveX control once that implements the MCIWnd animal though (I think included with VB). I'll try to find it again and see how it works.

One thing I know about a macro, and correct me if I'm wrong, is that it's some groop of operations that are easier to execute like this. So if MCIWndSetVolume is a macro, than it must consist of calls of some kind. So hopefully there is an alternative for auxSetVolume.
0
 
LVL 2

Author Comment

by:Ronald112197
ID: 1354509
ooops - sorry, I was too slow and the question was autograded...

however, I think the answer doesn't really deserve more that a C - it probably took 30 seconds to post it and didn't help a whole lot...

I was looking for an API-call, not for a large and complicated component and even less for a URL that allows me to search for a component myself :-((

btw: I STILL haven't found anything that works in Windows NT! :-((((
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1354510
Ronald, why didn't you say so, that you still didn't found anything? We can't smell it!
0
 
LVL 3

Expert Comment

by:Matvey
ID: 1354511
Zif, do you know what the help means when it says "MCIWndSetVolume macro"? How are we supose to run this one??? It might solve the problem with NT. All the components we find on the Delphi pages use auxSetVolume, and it might be meant only for '95.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

628 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