Hi,
I am a new user with the lame_enc.dll.My program bases on window platform.
I encounter a serious problem with the second parameter of beEncodeChunk(HBE_STREAM hbeStream, DWORD nSamples, PSHORT pSamples, PBYTE pOutput, PDWORD pdwOutput).I use window's MCI(Media Control Interface) functions to record sound.It places all datas into the char buffer(i.e.,char *lpData).It can playback.The datas are OK.But since the buffer is type of char,the second parameter of beEncodeChunk()(i.e.,PSHORT pSamples) is short* type.It is mismatch with char *. Therefor I access the datas buffer by short* ,not by char* any more. But when I encode the recorded datas using beEncodeChunk(),I found there are much noise in the background. I don't know why. I haved tried to save all the datas to a wav file and then encoded the file.But it still had noises. Just the same as encoded the buffer. But It goes well when I use the beEncodeChunk() to encode other wave files(generated by other program). I know that in the wav stream,datas are placed as L and R chanel in the alternate way.And I guess in the pSamples buffer,L chanel are placed in low-word,while R chanel are places in high-word. Am I right?
I am not sure whether raw wave datas in the buffer are dealed with before thay are saved to a wave file.
In short,can you tell me how to solve this problom(why there are so many noises)?
Hope to hear from your replay.Many thanks.
Phoenix







_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail


_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to