🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #868

Re: Mixer problem

#868
From: Maynard Philbrook
Date: Fri, 07 Mar 2003 16:34
40 lines
2465 bytes
That isn't a 98 constraint.
 that is the sound card drivers that happen to be installed.
 Aux devices are not very common any more..
 most of the time they only support the simple things like master volume etc..
if that..


George Nemeth wrote:

> I am having problems with the mixer devices under win98. The following
> code works fine with win95 and nt4, but the call to
>
> auxGetNumDevs() returns 0 all the time when run under win98.  We tried several machines with the same result. Can anyone shed an light on why, OR suggest a different method of controlling the mixer.  We simply need to lower the line in audio level, play a wav and then restore the line in back to the level it was previously at.
>
> int TStation::GetLineInDevice()
> {
>   //return # that identifies line in dev in aux dev list
>   AUXCAPS auxcaps;
>   int nDevId;
>   int nNbrAuxDevices = auxGetNumDevs();  //<--always returns zero under win98
>   int rc;
>   bool found = false;
>
>   for(nDevId = 0; nDevId < nNbrAuxDevices; nDevId++) {
>     rc = auxGetDevCaps(nDevId, &auxcaps, sizeof(auxcaps));
>     if(rc == MMSYSERR_NOERROR &&
>        (auxcaps.wTechnology & AUXCAPS_AUXIN) &&
>        (auxcaps.dwSupport & AUXCAPS_VOLUME)) {
>       ShowMessage("Got Aux In");
>       found = true;
>       break;
>     }
>   }
>
>   if(found) {
>     return nDevId;
>   } else {
>     return -1;
>   }
> }
Technical Details
Message-ID: <3E68CA2A.182AC986@mindspring.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail
References: <3e68b86c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,40172c977b3a476a
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2003-03-07 08:37:09 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail
From: Maynard Philbrook <UseThis.jamie12@mindspring.com>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Re: Mixer problem
Date: Fri, 07 Mar 2003 11:34:50 -0500
Organization: MindSpring Enterprises
Lines: 41
Message-ID: <3E68CA2A.182AC986@mindspring.com>
References: <3e68b86c$1@newsgroups.borland.com>
Reply-To: UseThis.jamie12@mindspring.com
NNTP-Posting-Host: 44.76.b2.0c
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Server-Date: 7 Mar 2003 16:37:08 GMT
X-Mailer: Mozilla 4.5 [en]C-CCK-MCD {TLC;RETAIL}  (Win98; U)
X-Accept-Language: en