473,768 Members | 8,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weird problem with sound card detecting

H

I got a problem with detecting sound card with Windows x

I use SDK function waveInGetNumDev s() to test if there is a sound card. But even if there is no sound card installed, the function still returns 1. And even waveInGetDevCap s() returns no error. I checked device->hardware, and there are some items under "Audio, Vido and game" catogary, they includes
"Legacy audio driver",
"Audio codecs
"Media Control devices
Guess there are some onboard Audio support, but no sound card installed

SO how can I detect if there is a sound card installed or not? Can anyone help me
Thank

Nov 17 '05 #1
3 2513
"June Li" <an*******@disc ussions.microso ft.com> wrote in message
news:9A******** *************** ***********@mic rosoft.com...
I use SDK function waveInGetNumDev s() to test if there
is a sound card. But even if there is no sound card
installed, the function still returns 1.
Your post is off-topic here. You should post again in

microsoft.publi c.win32.program mer.mmedia
And even waveInGetDevCap s() returns no error. I checked
device->hardware, and there are some items under "Audio,
Vido and game" catogary, they includes :
"Legacy audio driver",
"Audio codecs"
"Media Control devices"
Guess there are some onboard Audio support, but no sound
card installed.


It doesn't matter if the sound support is on the system board or a card. If
the driver finds suitable hardware and initializes it so that there is a
device available to be used then the function counts it.

Regards,
Will
Nov 17 '05 #2
"June Li" <an*******@disc ussions.microso ft.com> wrote in message
news:CA******** *************** ***********@mic rosoft.com...
Thanks William.
You are welcome.

As I said, you are in the wrong group.
I just tested using another function: mixerGetNumDevs . This function returns to zero.
Now my problem becomes: Should sound card/ device
(or onboard audio support capability ) necessarily detected
by calling mixerGetNumDevs () or waveInGetNumDev s


No of course not, mixers and waveform devices are different.

The problem here is one of expectation. waveInGetNumDev s() returns the
number of waveform devices on a system. In fact, one of them could be the
one that handles recording from a voice modem. It doesn't tell you what you
want to know.

Most multimedia applications use that function to present a list of devices
to the user and let him choose the one he wants.

PLEASE post follow-up in the multimedia group.

Regards,
Will
Nov 17 '05 #3
Oops, didn't find the post is already move to multimedia group --and I just made a duplicate on

So, waveInDevice is not enough to make microphone work. Is a mixer device the only prerequisite device to make mic work? I mean by calling mixerGetNumDevs () and it returns number larger than 0, (maybe do some capability test) then I can proceed to test microphohe? If not what else?
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
7414
by: David Saum | last post by:
I am modifying some VB6 code I found online for computing the spectra of sound card data http://fullspectrum.com/deeth/programming/vb.html#Spect in order to build a receiver to detect Gamma Ray Bursts (GRB). http://www.infiltec.com/SID-GRB@home The original code allows for sampling rates from 11.025 - 44.1khz, and that works OK, but I need to sample my Audigy2 sound card at 48 or preferably 96khz in order to look at signals around...
0
4242
by: Peter | last post by:
Hi all, I'm using windows media player as an object in visual basic 6. I have two sound cards in the PC. The default sound card is used for explorer "clicks" and statup / shutdown sounds in windows. The second card is connected to my stereo system and I want to have WMP play through this card. Even after having studying the SDK I can't seem to figure out how to do this. In the Windows Media Player it'sself I can set up which device it...
1
2040
by: Nick | last post by:
Are there any good C++ libraries that let me input bytes from a sound card's line in? I've tried a few, but they always seem to be fubar. I need to be able to make distinctions between sounds input from a radio connected to the sound card thru the line in, probably using the sine wave formula of the input.
5
3589
by: djc | last post by:
what choices do I have to play sounds in a program using vb.net? Or, I guess if nothing vb specific what windows API(s) should I look at? I am interested to find out whats needed for playing short wav files for sound effects as well as playing longer sound clips in mp3 format. can anyone point me in the right direction?
3
2341
by: larry | last post by:
Hi, my friends, My boss asked me to use sound card to do analog to digital conversion for my application. I know when we record sound, sound card changes anolog signal to digital file. I have no idea where should I start? Do I need to write a driver for sound card? Is there any tool from Visual Stuido? Would you like to help me? H e l p ! Regards,
1
3157
by: strancho | last post by:
hi guys: i am rather new to C++. By using beep(hz, duration), I figured out a way to drive computer speaker. However, my project requires me to create sound from the sound card. Do you happen to know how this works? or is there a command like that? I was going to generate it from wave file. However, it is just too cumbershome.. thanks for the help
3
4394
by: =?Utf-8?B?SlZE?= | last post by:
In my system, i have two sound card installed. I am developing one multimedia application in c# using DirectShow. I want to select particular sound card and play one audio file and, play another audio file in other sound card. i tried adding some audio filter (as suggested in web) but since i am novice, i could not solve it. Could anybody provide me source code in c# to resolve this issue. Hope someone is there.
12
17486
by: eric dexter | last post by:
I want to compare what I get on the command line in winmain with an if statement.. I am getting a beginers error but I don't have an example to use to fix it.. cannot convert from 'const int' to 'char *' in this line if (__argv = 'file'){}; I am very lost with this error and any help would be apreaceated int WINAPI WinMain(HINSTANCE hInstance, //handle to current instance HINSTANCE hPrevInstance, //pointer to the previous instance...
2
4777
by: lazzypink | last post by:
hi guys! i having a problem in my project which is create a media player and let the user choose the sound card for audio output. Let say i have 2 sound card in my computer, i want to select the sound card to play an audio file. i'm using C# window media player com component. eg. axWindowsMediaPlayer1. your kindly help much much appreciated. Thanks!
0
9576
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10175
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10017
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9961
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8840
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7384
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3534
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2808
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.