Kwint wrote:
Here is the output of test program:
Devices: 1
mixercaps code: 0
Result code: 0
device name: Microphone, lineId: 786432, dwComponentType: 4099
Wavein test
waveindevs 1
auxdevs 0
wavein0 device mixerid = 0
opened wave device mixerid = 0
Finished

I've got only one mixer on my sound card, so I've set mixerOpen(&hmx, 0, 0, 0,
MIXER_OBJECTF_MIXER );
I've tried 9067 sipxtapi branch, but I can't find mixer id detection there. Was
your patch applied to sipxtapi ?
When I use MIXERLINE_COMPONENTTYPE_DST_WAVEIN it affects only recording.
Does it work for you when using MIXERLINE_COMPONENTTYPE_DST_WAVEIN and correct
mixer id (probably 1 on your sound card) ?

_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Mixer ID detection is present in sipxtapi branch. Your problem isnt in mixer ID detection, but in setting volume on wrong control. On my soundcard Mixer with id 1 is input mixer and has both MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE and MIXERLINE_COMPONENTTYPE_DST_WAVEIN.

If I put MIXERLINE_COMPONENTTYPE_DST_WAVEIN into MpCodec_setGain then the call succeeds but sets volume on the control called "Stereo Mix". MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE sets volume on control "Mic volume". I attached a screenshot of what I see in my input mixer volume settings.

So if we put MIXERLINE_COMPONENTTYPE_DST_WAVEIN in, it will work for you but incorrectly for me :).

Do both MIXERLINE_COMPONENTTYPE_DST_WAVEIN and MIXERLINE_COMPONENTTYPE_DST_WAVEIN change value of the microphone control for you? Do you see the slider moving when you change volume using them?

Please get latest drivers from VIA or motherboard manufacturer. This problem might disapper after update. Before I updated my soundcard drivers, MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE didnt exist on input mixer.

I also have a 2nd laptop for testing right now, so I will test sipxtapi there to see whether setting mic gain works.

Jaroslav Libak

<<attachment: inputmixervolume.jpg>>

_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to