Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
Alex Chmut Old
#1  
Guest
Thanks Meter
Posts: n/a
Default Microphone Gain Level

Does anybody know how to control audio input (mirophone) volume level on XDA and how to enable/disable AGC?
ericbadger Old
#2  
Guest
Thanks Meter
Posts: n/a
Default Disabling Microphone AGC

Below is my function for disabling the Microphone AGC

HRESULT DisableMicrophoneAGC()
{
LRESULT lr = 0;
HKEY hKey;
DWORD dwresult = 0;
DWORD dwdatasize =0;

lr = RegCreateKeyEx(HKEY_LOCAL_MACHINE,L"System\\Curren tControlSet\\AdvancedCPL",0,NULL,REG_OPTION_NON_VO LATILE,KEY_WRITE | KEY_READ, NULL, &hKey, &dwresult);


if(lr == ERROR_SUCCESS)
{
dwdatasize = 1;
BYTE bdata[] = {0};
lr = RegSetValueEx(hKey,L"MicrophoneAGC",0,REG_DWORD,(L PBYTE)&bdata,dwdatasize);
}


if(lr == ERROR_SUCCESS)
{
::RegCloseKey(hKey);
}


return S_OK;
}
 
dez93_2000
Old
#3  
Senior Member
Thanks Meter 0
Posts: 156
Join Date: Jan 2009
Location: Teddington
rather than disabling this, does anyone know how one could go about improving the auto-gain control - if it already exists - on the HTC Touch HD? I was at a gig & recorded some video, and the bass was so overpowering that all you could hear was crunch. If it had some kind of smart feedback enough to reduce the low end, it might have been OK. Any thoughts?
 
bobzero
Old
#4  
Senior Member
Thanks Meter 145
Posts: 945
Join Date: Oct 2008
holy 6.25 years thread bump batman. this must be some kind of record.
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...