Hello freinds ,
My problem is that i am getting a background noise on adding the channels data while phone call recording.
When i tried it by using only second channel i found no voice, but a little noise in first channel. As a result on adding i got a high noise
 
In the code i am just adding the channels data but when i divides and add it gives too much noise and nothing is heard.
 
If you can help then i will be thankful to you for that   
 
UInt16 tvar[1024];
   UInt16 *bP;
   UInt16 j = 0,ib;
 
if (audP->stereo) {
           
               bP = (UInt16 *) buffer;
              
             for (ib=0;ib<fcount*2;ib=ib+2) {
             
                  tvar[j] = bP[ib] + bP[ib+1];
                j++;
               
        }
             
            MemMove((unsigned char *)bP, (unsigned char *)tvar, 2048); 
                         rc = AST_AudioFileWrite(audP,fcount * 2,buffer,&byteswritten)
 
Note : buffer is the sound data. If anything is not clear then plz ask .
 
I am sending the wave file too if you want to know what type of background noise


Cordially
Prashant Batra

È:+91-0-9891077330

 
 


Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to