Solved

MCI and volume control

Posted on 1998-05-20
6
247 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get a List of Executing Stored Procedures on Sql Server 2008 R2 5 65
Slow process to read Excel 15 148
windbg taking it's time 32 100
VS2015 Redefinition errors 4 91
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…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

733 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