Re: recording device corresponding to the playback device

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.
>
.



Relevant Pages

  • Re: Recording basics
    ... >> for recording and one for playback. ... Yup, Win 98 mixer. ... Aux send of mixer going to sound card input. ...
    (rec.audio.pro)
  • Re: recording from windows mixer
    ... When I've tried such things with Windows, ... The output of the audio hardware goes to a Windows _playback_ mixer ... to route it to the Windows _recording_ mixer. ...
    (rec.audio.pro)
  • Re: Recording basics
    ... > for recording and one for playback. ... Sounds like the output of the recording mixer was being fed into the ... There should be an "input" in the playback mixer that controls this. ...
    (rec.audio.pro)
  • Re: sound recording questions
    ... Since you have a rec option in your mixer.... ... Mixer video is currently set to 75:75 ... So I got my recording source in mixer output. ... >valid playback device, it does provide playback. ...
    (freebsd-questions)
  • Re: Audio snap, crackle, and pop
    ... Subdevice #0: subdevice #0 ... Simple mixer control 'Line in',0 ... Playback channels: Mono ... iface MIXER ...
    (Fedora)