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

typedef struct scrambler {
	double		carrier_phaseshift65536;/* carrier phase shift per sample */
	double		carrier_phase65536;	/* current phase of carrier frequency */
	iir_filter_t	lp;			/* filter to remove carrier frequency */
} scrambler_t;

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