aboutsummaryrefslogtreecommitdiffstats
path: root/src/cnetz
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-03-04 16:52:20 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-03-04 16:52:20 +0100
commit8e0d7d2513110e39d67dd7c31ae91dd95226f122 (patch)
tree27163815dca7590c5e32b114a6fe825a96a83f00 /src/cnetz
parent3fc4fc54be56310650a9f7ea1183aa71a3d3ac4d (diff)
samplerate.c: Allow transcoding to lower sample rate other than 8000 Hz
Diffstat (limited to 'src/cnetz')
-rw-r--r--src/cnetz/dsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cnetz/dsp.c b/src/cnetz/dsp.c
index 9b453bb..40b2bc6 100644
--- a/src/cnetz/dsp.c
+++ b/src/cnetz/dsp.c
@@ -134,7 +134,7 @@ int dsp_init_sender(cnetz_t *cnetz, int measure_speed, double clock_speed[2])
}
/* reinit the sample rate to shrink/expand audio */
- init_samplerate(&cnetz->sender.srstate, (double)cnetz->sender.samplerate / 1.1); /* 66 <-> 60 */
+ init_samplerate(&cnetz->sender.srstate, 0x8000, (double)cnetz->sender.samplerate / 1.1); /* 66 <-> 60 */
rc = fsk_fm_init(&cnetz->fsk_demod, cnetz, cnetz->sender.samplerate, (double)BITRATE / (1.0 + clock_speed[0] / 1000000.0));
if (rc < 0)