How to detect soundcard is full or half duplex?

Posted on 2000-03-29
Last Modified: 2013-12-03
What are some of the techniques to detect whether the sound card is full or half duplex? Is there any WinAPI that can do it? I want either a source code example or a program which can help me to detect it.
Question by:yeohungs
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
  • 2
LVL 15

Accepted Solution

NickRepin earned 200 total points
ID: 2667824
There is no API. The only way is to try to open it in a full duplex.

Something like this:


if(waveOutOpen(your_format)==OK) {
   if(waveInOpen(your_format)==OK) {
   else {

Author Comment

ID: 2667977
But there could be a possibility that the wave device is already in use by some other programs, right?
LVL 15

Expert Comment

ID: 2668480
In this case, there is no way to detect (ERROR in my code above).

You have to determine the sound card type while setup and ask the user to close all programs before.

Moreover, it's better to provide a special checkbox in your program's settings so that the user can choose between half/full duplex in the case if your program incorrectly detected that.

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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 accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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.…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

691 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