aboutsummaryrefslogtreecommitdiffstats
path: root/src/cnetz/scrambler.h
blob: 7b5defff3e9b8fed011749dd90144045177ac987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "../common/filter.h"

typedef struct scrambler {
	double			carrier_phaseshift256;	/* carrier phase shift per sample */
	double			carrier_phase256;	/* current phase of carrier frequency */
	biquad_low_pass_t	bq;			/* filter to remove carrier frequency */
} scrambler_t;

void scrambler_init(void);
void scrambler_setup(scrambler_t *scrambler, int samplerate);
void scrambler(scrambler_t *scrambler, int16_t *samples, int length);