aboutsummaryrefslogtreecommitdiffstats
path: root/src/anetz/anetz.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-04-17 15:17:38 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2016-04-17 16:49:39 +0200
commit9de121109db5ca60462d35e4e45b7e5219f28503 (patch)
treee0aaf1d5ce770b5f0a5494b3319b4aa00ea32bbb /src/anetz/anetz.c
parent05402283dfd4da630c254cd1e3852ac3900abd3e (diff)
common code: Sample rate conversion now supports any rate above 8000 Hz
Diffstat (limited to 'src/anetz/anetz.c')
-rw-r--r--src/anetz/anetz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/anetz/anetz.c b/src/anetz/anetz.c
index 8d965fe..0a9559f 100644
--- a/src/anetz/anetz.c
+++ b/src/anetz/anetz.c
@@ -468,7 +468,7 @@ void call_rx_audio(int callref, int16_t *samples, int count)
return;
if (anetz->dsp_mode == DSP_MODE_AUDIO) {
- int16_t up[count * anetz->sender.srstate.factor];
+ int16_t up[(int)((double)count * anetz->sender.srstate.factor + 0.5) + 10];
count = samplerate_upsample(&anetz->sender.srstate, samples, count, up);
jitter_save(&anetz->sender.audio, up, count);
}