🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: creative.misc
Article #1599

Sound card aux devices problem with win2000

#1599
From: Werner Deyzel
Date: Wed, 25 Jul 2001 17:59
124 lines
3043 bytes
I am using waveoutgetnumdevs, waveingetnumdevs and auxgetnumdevs to get the
audio card numbers and then to get the capabilities. The first 2 functions
perform as expected but the auxgetnumdevs always return 0. So either nothing
found or there is a problem.

This works 100% under win98 & NT4.0.

What should I do different for win2000.

Here is the source for a small test program. It compiles under both VC6.0
and BC++ builder5.0 as is, and the tests were done with both compilers and
the results were the same. The drivers for my audio cards are the latest
provided by creative and they claim it is win2000 compatible.

Thanks
Werner Deyzel

file://---------------------------------------------------------------------
-----
-

#include <windows.h>

#include <iostream.h>

#include <Mmsystem.h>

file://---------------------------------------------------------------------
-----
-

int main(int argc, char* argv[])

{

int NuminCards,NumAux, NumoutCards;

WAVEOUTCAPS waveOutCaps;

WAVEINCAPS waveInCaps;

AUXCAPS auxCaps;

// ------------------- 1 ---------------------------------

// Get Output Devices

NumoutCards = waveOutGetNumDevs();

cout << "NumOutCards = "<< NumoutCards << endl;

if (NumoutCards > 0)

{

for (int i=0;i<NumoutCards;i++)

{

waveOutGetDevCaps(i, &waveOutCaps, sizeof(WAVEOUTCAPS));

cout << "waveoutcaps.szPname: " << waveOutCaps.szPname <<endl;

}

}

// --------------------- 2 ----------------------------------

// Get Input Devices

NuminCards = waveInGetNumDevs();

cout<< "NuminCards = "<< NuminCards <<endl;

if (NuminCards > 0)

{

for (int i=0;i<NuminCards;i++)

{

waveInGetDevCaps(i, &waveInCaps, sizeof(WAVEINCAPS));

cout << "waveInCaps.szPname: " << waveInCaps.szPname <<endl;

}

}

// -------------------- 3 ----------------------------------

// Get Aux Device Box.

NumAux = auxGetNumDevs();

cout << "NumAux = "<< NumAux <<endl;

if (NumAux > 0)

{

for (int i=0;i<NumAux;i++)

{

auxGetDevCaps(i,&auxCaps, sizeof(AUXCAPS));

cout << "auxCaps.szPname: " << auxCaps.szPname <<endl;

}

}

char x;

cout << "Any key and Enter to Exit" << endl;

cin >> x;

return 0;

}
Technical Details
Message-ID: <9jktu6$5u9$1@news.creativelabs.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!skynet.be!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!news.creativelabs.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10b5d6,464e0a97bdf27f18,start
X-Google-Attributes: gid10b5d6,public
X-Google-ArrivalTime: 2001-07-25 11:09:19 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!skynet.be!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!news.creativelabs.com!not-for-mail
From: "Werner Deyzel" <deyzel@iname.com>
Newsgroups: creative.misc
Subject: Sound card aux devices problem with win2000
Date: Wed, 25 Jul 2001 11:59:13 -0600
Organization: Creative Labs, Inc.
Lines: 127
Message-ID: <9jktu6$5u9$1@news.creativelabs.com>
NNTP-Posting-Host: 205.233.15.240
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200