[PATCH v3 17/24] echo-cancel: Fix webrtc canceller when rec channels != play channels

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

 



On 8 February 2016 at 14:52, Arun Raghavan <arun at accosted.net> wrote:
> On 8 February 2016 at 13:32, Tanu Kaskinen <tanuk at iki.fi> wrote:
>> On Mon, 2016-01-18 at 13:06 +0530, arun at accosted.net wrote:
>>> From: Arun Raghavan <git at arunraghavan.net>
>>>
>>> The calculations around how many samples were sent to the canceller
>>> engine was not updated when we started supporting different channel
>>> counts for playback and capture.
>>> ---
>>>  src/modules/echo-cancel/echo-cancel.h |  4 ++--
>>>  src/modules/echo-cancel/webrtc.cc     | 25 +++++++++++++------------
>>>  2 files changed, 15 insertions(+), 14 deletions(-)
>>>
>>> diff --git a/src/modules/echo-cancel/echo-cancel.h b/src/modules/echo-cancel/echo-cancel.h
>>> index 37f99c0..4693516 100644
>>> --- a/src/modules/echo-cancel/echo-cancel.h
>>> +++ b/src/modules/echo-cancel/echo-cancel.h
>>> @@ -64,8 +64,8 @@ struct pa_echo_canceller_params {
>>>              /* This is a void* so that we don't have to convert this whole file
>>>               * to C++ linkage. apm is a pointer to an AudioProcessing object */
>>>              void *apm;
>>> -            uint32_t blocksize;
>>> -            pa_sample_spec sample_spec;
>>> +            int32_t blocksize; /* in frames */
>>
>> Why is the type changed from unsigned to signed? It doesn't look like
>> you need negative values.
>
> I meant to change that to just an int, rather than specify the size,
> which is unnecessary here.

That was meant to be unsigned int, which is what I'm changing it to.

-- Arun


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux