Hi to all,
I am implementing the USB audio driver for Win XP.
when i connect my device and open KsStudio and expand the KSNODETYPE_MUTE and KSNODETYPE_VOLUME Node and check the value in Master ,Channel 0 and Channel 1 for both node.
for MUTE
Master , Channel 0 and Channel 1 are TRUE.
but it should be TRUE for Only Channel 0 and FALSE for Master and Channel 1.
For VOLUME
Master , Channel 0 and Channel 1 having the same value i.e current value of volume.
but Master and Channel 1 should be 0.
and Channel 0 should have the current value of volume.
i have specify only 1 channel in KSDATARANGE_AUDIO :
const KSDATARANGE_AUDIO PinDataRanges =
{
{
{
sizeof(KSDATARANGE_AUDIO),
0,
0,
0,
STATICGUIDOF(KSDATAFORMAT_TYPE_AUDIO), // major format
STATICGUIDOF(KSDATAFORMAT_SUBTYPE_PCM), // sub format
STATICGUIDOF(KSDATAFORMAT_SPECIFIER_WAVEFORMATEX) // wave format
},
1, // channels
16, // min. bits per sample
16, // max. bits per sample
16000, // min. sample rate
16000 // max. sample rate
}
};
How i can enable only channel 0 and disable other 2 ???
hi
can someone help me about this channel issue its urgent.
xxxxx@lntinfotech.com wrote:
I am implementing the USB audio driver for Win XP.
when i connect my device and open KsStudio and expand the KSNODETYPE_MUTE and KSNODETYPE_VOLUME Node and check the value in Master ,Channel 0 and Channel 1 for both node.
for MUTE
Master , Channel 0 and Channel 1 are TRUE.
but it should be TRUE for Only Channel 0 and FALSE for Master and Channel 1.
For VOLUME
Master , Channel 0 and Channel 1 having the same value i.e current value of volume.
but Master and Channel 1 should be 0.
and Channel 0 should have the current value of volume.
i have specify only 1 channel in KSDATARANGE_AUDIO :
If your stream only has one channel available, then all of your requests
are going to the master, no matter what channel number you specify in
the property request. Applications are expected to be smart enough not
to manipulate channels that do not exist.
How i can enable only channel 0 and disable other 2 ???
There is no channel 1. There is only the master.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Thanks Tim,
i got your point.
but i have logitech wecam when i connect that device and open KsStudio and check for KSNODETYPE_MUTE and KSNODETYPE_VOLUME Node.Only channel0 has mute and volume value and master and channel1 has no value.
for that we have to mention any thing some where???
xxxxx@lntinfotech.com wrote:
but i have logitech wecam when i connect that device and open KsStudio and check for KSNODETYPE_MUTE and KSNODETYPE_VOLUME Node.Only channel0 has mute and volume value and master and channel1 has no value.
for that we have to mention any thing some where???
I still don’t see what the PROBLEM is here. Are there any applications
that don’t work as expected? If not, why do you care?
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.