Skip to content
Snippets Groups Projects
Commit ffdbc957 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

audio: reduce default ring buffer size

Current size was defined before the LibAV jitter buffer
was introduced. The buffer size defined was already very
conservative: 32000 samples means 2/3 of a second (an eternity).

* reduce buffer size to 16000 samples (333 ms at 48kHz)
* reduces audio latency of up to 333 ms
* should slightly improve echo cancelling

Tuleap: #120
Change-Id: I0c3d4f83d18f4fdede7e89cd9a36327af716c1ca
parent d3a1c36d
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
* Copyright (C) 2004-2015 Savoir-faire Linux Inc.
*
* Author: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
* Author: Adrien Béraud <adrien.beraud@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -30,7 +31,7 @@ namespace ring {
typedef int16_t AudioSample;
static constexpr size_t SIZEBUF = 32000; /** About 1s of buffering at 48kHz */
static constexpr size_t SIZEBUF = 16000; /** About 62.5ms of buffering at 48kHz */
/**
* This meta-function is used to enable a template overload
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment