Solved

Setting volume for CD/Mediaplayer?

Posted on 1998-06-20
8
160 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi custom sort exception 6 138
PDF library for Delphi 2 107
my delphi exe application have  problem with windows explorer ! 12 80
Delphi TcxGrid group footer summary 3 213
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

863 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

22 Experts available now in Live!

Get 1:1 Help Now