Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Question for Chensu

Posted on 1998-06-02
5
Medium Priority
?
231 Views
Last Modified: 2013-12-03
Hi Chensu!
I'd like to ask in continue of my previous question.
In mixer WaveInput/MixerList there are a few items.
The function mixerGetControlDetails() returns or its values
or its text descriptions.
How I can know what item is the "microphone select".
To use text descriptions is not safe because I think
text descriptions can be or non-standard or not in English.
Thanks, Vladimir_12345
 
0
Comment
Question by:vladimir_12345
[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
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 80 total points
ID: 1406113
When you use mixerGetControlDetails to get the text labels with the MIXER_GETCONTROLDETAILSF_LISTTEXT flag, the MIXERCONTROLDETAILS_LISTTEXT structure returns not only the text but also the dwLineID (the dwParam1 member) which the control is for. Use this dwLineID to compare with the dwLineID you get from mixerGetLineInfo (MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE).
0
 
LVL 1

Author Comment

by:vladimir_12345
ID: 1406114
Hi Chensu, thanks for your idea.
But it need in more accurate definition.
mixerGetLineInfo (MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE) returns
microphone line id for DST Speakers.
But mixerGetControlDetails (MIXERCONTROLDETAILS_LISTTEXT) returns
line ids for DST WaveInput.
If call mixerGetLineInfo() for every line ids from
mixerGetControlDetails (MIXERCONTROLDETAILS_LISTTEXT)
and to compare dwComponentType with MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE
it is possible to find "microphone select".
Chensu, from where you know so many about sound cards?
My e-mail: vladimir@comfy.co.il
Thanks again, Vladimir_12345

0
 
LVL 23

Expert Comment

by:chensu
ID: 1406115
Yes, you are right. Thank you for correcting me. Let me refine it.

There are normally two (or more) MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE source audio lines. One is for MIXERLINE_COMPONENTTYPE_DST_SPEAKERS destination audio line and another is for MIXERLINE_COMPONENTTYPE_DST_WAVEIN destination audio line. mixerGetLineInfo(MIXER_GETLINEINFOF_COMPONENTTYPE, MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE) only returns the information about the first audio line of the type MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE. So, call mixerGetLineInfo(MIXER_GETLINEINFOF_LINEID, dwLineID) to get the dwComponentType and compare it with MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE. The dwLineID is obtained from the dwParam1 member returned by mixerGetControlDetails (MIXERCONTROLDETAILS_LISTTEXT).

My knowledge about sound cards is just average. I am just interested in it.
0
 
LVL 1

Author Comment

by:vladimir_12345
ID: 1406116
Hi Chensu! To finish with the mixer discussion what do you
think: first audio line MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE
is always in MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (if it's present)or not? It is impossible to say that there is too many mixer info in help.



0
 
LVL 23

Expert Comment

by:chensu
ID: 1406117
I think it depends on the device driver. It is not compulsory although most of the device drivers do so.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

688 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