Solved

MCI and volume control

Posted on 1998-05-20
6
233 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

20 Experts available now in Live!

Get 1:1 Help Now