Solved

MCI and volume control

Posted on 1998-05-20
6
243 Views
Last Modified: 2013-12-04
I'm trying to set the volume on my CD drive while playing RedBook audio. Anyone know of a way to do this using mciSendCommand()? Thanks
0
Comment
Question by:vincew
  • 3
  • 3
6 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
ID: 1402843
You need to use the auxSetVolume function to accomplish it. The auxGetNumDevs function retrieves the number of auxiliary output devices present in the system. The auxGetDevCaps function tells you if it is a CD audio device and if it supports volume control.
0
 

Author Comment

by:vincew
ID: 1402844
Thank you for you very quick response. I'm on a tight schedule and your promptness as well as your answer are very much appreciated.
0
 
LVL 23

Expert Comment

by:chensu
ID: 1402845
You are welcome.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:vincew
ID: 1402846
Tried the functions you mentioned, I queried for devices, found a CD drive and tested for volume adjust capability as well as for LR volume adjust capability. My drive failed both tests. In Windows there is a system CD player. Inside this player, you can both adjust the volume as well as pan cd audio. They're doing it, but I can't. Are there any other functions that you know of that could be used for my purpose?
0
 
LVL 23

Expert Comment

by:chensu
ID: 1402847
The most efficient way is to use Audio Mixer Functions (mixer*) to control the MIXERCONTROL_CONTROLTYPE_VOLUME mixer control of the MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC mixer line. These functions are not so easy to use. You need some time to delve into it. There is a Multimedia Sample "Mixapp: Sample Mixer Application" that comes with the Windows Platform SDK (Win32 SDK).

Good Luck!
0
 

Author Comment

by:vincew
ID: 1402848
Thanks again for your promptness.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Insert filename column as column a 18 76
Clean Uninstall of VS Professional 2015 5 56
Need to impress with my knowledge of .NET 5 92
VS2015 Redefinition errors 4 67
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

789 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