mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 08:40:14 +02:00
util/spkmodem_recv: Move global variable: pulse
It is only used by a single function. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -22,7 +22,6 @@
|
|||||||
#define FLUSH_TIMEOUT 1
|
#define FLUSH_TIMEOUT 1
|
||||||
|
|
||||||
signed short frame[2 * SAMPLES_PER_FRAME];
|
signed short frame[2 * SAMPLES_PER_FRAME];
|
||||||
signed short pulse[2 * SAMPLES_PER_FRAME];
|
|
||||||
int f1, f2;
|
int f1, f2;
|
||||||
int lp = 0;
|
int lp = 0;
|
||||||
int ascii_bit = 7;
|
int ascii_bit = 7;
|
||||||
@@ -76,6 +75,7 @@ void
|
|||||||
fetch_sample(void)
|
fetch_sample(void)
|
||||||
{
|
{
|
||||||
static int ringpos = 0;
|
static int ringpos = 0;
|
||||||
|
static signed short pulse[2 * SAMPLES_PER_FRAME];
|
||||||
|
|
||||||
f1 -= pulse[ringpos];
|
f1 -= pulse[ringpos];
|
||||||
f1 += pulse[(ringpos + SAMPLES_PER_FRAME) % (2 * SAMPLES_PER_FRAME)];
|
f1 += pulse[(ringpos + SAMPLES_PER_FRAME) % (2 * SAMPLES_PER_FRAME)];
|
||||||
|
|||||||
Reference in New Issue
Block a user