[wdmaudiodev] Nodes/pins to expose Wave output line

  • From: Eugene Muzychenko <emuzychenko@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Mon, 14 Jul 2008 17:10:56 +0700

How can I properly represent topology of a wave filter without a DAC,
with a single Wave Out line?

My filter topology is the following:

- a bridge pin (WaveOut_Source) with KSPIN_DATAFLOW_IN,
KSPIN_COMMUNICATION_NONE, KSCATEGORY_AUDIO, 0
- a Volume node (master volume)
- a Mute node (master mute)
- a bridge pin (LineOut_Dest) with KSPIN_DATAFLOW_OUT, KSPIN_COMMUNICATION_NONE,
&KSNODETYPE_SPEAKER, &KSAUDFNAME_MASTER_VOLUME

In that case, sndvol32 shows "Wave" line
(MIXERLINE_TARGETTYPE_WAVEOUT) right to the "Master volume".
Volume/mute control changes to the "Master volume" line are sent to my
Volume/Mute nodes. No control changes to "Wave" line are sent to my
filter but Windows itself controls volume for all streams, except for
streams created as DirectSound hardware-accelerated buffer.

If I change KSCATEGORY_AUDIO in the WaveOut_Source bridge pin to
KSNODETYPE_LEGACY_AUDIO_CONNECTOR, the "Wave" line disappears from
sndvol32 but control changes to the "Master volume" line are not sent
to my filter.

Since Windows adds "SW Synth" and "CD Player" virtual lines to form a
"full-featured" virtual device, I think I should add a separate
destination line for the "Wave" but I don't know where to add it. :(

I tried to add a mixer node, KSNODETYPE_SUM, and another volume/mute
pair, named KSAUDFNAME_WAVE_VOLUME/KSAUDFNAME_WAVE_MUTE, before it. So
the connection scheme becomes the following:

- WaveOut_Source bridge pin
- Wave Volume node
- Wave Mute node
- Sum node
- Master Volume node
- Master Mute node
- LineOut_Dest bridge pin

But in that case, I still receive only Master volume/mute actions, not
Wave ones.


******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts:

  • » [wdmaudiodev] Nodes/pins to expose Wave output line