Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Setting volume for CD/Mediaplayer?

Posted on 1998-06-20
8
Medium Priority
?
179 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
  • 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
Technology Partners: 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!

 
LVL 8

Accepted Solution

by:
ZifNab earned 100 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

Industry Leaders: 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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

971 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