linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] (no subject)


From: Ghislain MARY
Subject: Re: [Linphone-developers] (no subject)
Date: Mon, 21 Sep 2015 16:05:03 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

Hi Mark,

Yes, the buffer contains 16bits PCM samples.
Why do you divide the size of the buffer by 2 to perform the memset? If you want to zero the sample you need to do it on the full sample.

Cheers,
Ghislain

On 02/09/2015 21:18, Def NotACop wrote:

I'm desperately trying to apply simple sound effect to the input mic audio. After some digging into code and reading docs I thought I understood how these filters work.
I then took MSPulseRead and for starters in pulse_read_process I zero'd out input audio stream just to see if I'm at right place:

N = (om->b_wptr - om->b_rptr) / 2;
memset(om->b_rptr,0,N);
ms_queue_put(f->outputs[0], om);

...but nothing really happened. Output voice was slightly distorted, but it was pretty clear. To my understanding, audio stream of all 0s should make silent output?

Can somebody please make this clear: om->b_rptr points to int16_t array of PCM samples?

Thank you very much!

Regards,
Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]