Re: recording device corresponding to the playback device
- From: mudeem <mudeem@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 5 Sep 2005 10:49:07 -0700
Thanks Chris,
The mixer approach seems to be working. But is it guaranteed that the mixer
device would always be the same for the corresponding playback and recording
devices.
Regards
Mudeem
"Chris P. [MVP]" wrote:
> On Mon, 5 Sep 2005 09:55:02 -0700, mudeem wrote:
>
> > Hi Chris,
> >
> > If you are talking about the device Id's that we pass to waveInGetDevCaps
> > and waveOutGetDevCaps then they don't match if we enumerate them. If we
> > enumerate the playback and recording devices they are returned in the order
> > they are displayed in the combo boxes present in Suond and Audio properties
> > dialog box. And if default playback and recording devices are different they
> > are definitly displayed in different order in their respective combo boxes
> > and hence are enumerated in different order.
> >
> > I am enumerating as follows
> >
> > for (int i = 0; i < waveOutGetNumDevs(); i++)
> > {
> > waveOutGetDevCaps(i, &wic, sizeof(wic));
> > waveInGetDevCaps(i, &woc, sizeof(woc));
> > }
> >
> > This returns corresponding playback and recording devices in different order
> > as default playback and recording devices are different.
>
> Ah yes, you are correct. Previously the suggested method would have been
> to compare the Product ID and Device ID, but these are no longer device
> specific.
>
> I can think of no ideal solution, only a hack that will work only if the
> device has a mixer object. Using mixerGetID() will get you the mixer ID
> for either a waveIn or waveOut device, which you could then compare.
>
.
- Follow-Ups:
- Re: recording device corresponding to the playback device
- From: Chris P. [MVP]
- Re: recording device corresponding to the playback device
- References:
- recording device corresponding to the playback device
- From: mudeem
- Re: recording device corresponding to the playback device
- From: Chris P. [MVP]
- Re: recording device corresponding to the playback device
- From: mudeem
- Re: recording device corresponding to the playback device
- From: Chris P. [MVP]
- recording device corresponding to the playback device
- Prev by Date: Re: recording device corresponding to the playback device
- Next by Date: Re: recording device corresponding to the playback device
- Previous by thread: Re: recording device corresponding to the playback device
- Next by thread: Re: recording device corresponding to the playback device
- Index(es):
Relevant Pages
|