Solved

Setting volume for CD/Mediaplayer?

Posted on 1998-06-20
8
154 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
Comment Utility
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
Comment Utility
0
 
LVL 2

Author Comment

by:Ronald112197
Comment Utility
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
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
Comment Utility
Hi Ronald,

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

Zif.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 3

Expert Comment

by:Matvey
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now