Solved

MCI and volume control

Posted on 1998-05-20
6
236 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Fox Pro commands 15 46
How to create a log table of all deleted records Sql Server 2008? 5 70
Changing the installation path of this MSI 5 103
WPF issue with Trigger 2 106
This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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