From 2ba197c19561114c4d8831fcfb77ac179f666eb2 Mon Sep 17 00:00:00 2001 From: okcsampson Date: Fri, 16 Jun 2017 21:20:38 +0000 Subject: [PATCH] Add getter functions for sample size git-svn-id: https://svn.code.sf.net/p/freetel/code@3202 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/src/codec2_ofdm.h | 2 ++ codec2-dev/src/ofdm.c | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/codec2-dev/src/codec2_ofdm.h b/codec2-dev/src/codec2_ofdm.h index 11265bdd..eeb26e0e 100644 --- a/codec2-dev/src/codec2_ofdm.h +++ b/codec2-dev/src/codec2_ofdm.h @@ -50,6 +50,8 @@ void ofdm_destroy(struct OFDM *); void ofdm_mod(struct OFDM *, COMP *, const int *); void ofdm_demod(struct OFDM *, int *, COMP *); int ofdm_get_nin(struct OFDM *); +int ofdm_get_samples_per_frame(void); +int ofdm_get_max_samples_per_frame(void); /* option setters */ diff --git a/codec2-dev/src/ofdm.c b/codec2-dev/src/ofdm.c index 5b413560..d3dba897 100644 --- a/codec2-dev/src/ofdm.c +++ b/codec2-dev/src/ofdm.c @@ -355,6 +355,14 @@ int ofdm_get_nin(struct OFDM *ofdm) { return ofdm->nin; } +int ofdm_get_samples_per_frame() { + return OFDM_SAMPLESPERFRAME; +} + +int ofdm_get_max_samples_per_frame() { + return OFDM_MAX_SAMPLESPERFRAME; +} + void ofdm_set_verbose(struct OFDM *ofdm, int level) { ofdm->verbose = level; } -- 2.25.1