MATLAB: How to disable automatic gain control of windows XP sound card

agc of sound card

I want to turn off the automatic gain control of windows xp sound card please suggest how to do so.
Thanks.

Best Answer

I am assuming you want to play a MATLAB array out the soundcard. If you want to programtically turn off the gain control so any program can by pass it, then you will need to provide a lot more information about the sound card and drivers.
To do it in MATLAB I would suggest using a portaudio implementation (e.g., pawavplay, playrec or psychtoolbox). Despite all the excess baggage, I would go with psychtoolbox.
By the way, are you sure your sound card has an automatic gain control? Do you consider clipping to be gain control?