Solved

MCI and volume control

Posted on 1998-05-20
6
259 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

630 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