mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 11:22:00 +01:00
22 lines
630 B
C
22 lines
630 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "../dsp/oscillator.h"
|
|
#include <liquid/liquid.h>
|
|
#include <complex.h>
|
|
#include "../dsp/delay.h"
|
|
|
|
typedef struct
|
|
{
|
|
uint8_t multiplier;
|
|
Oscillator* osc;
|
|
float audio_volume;
|
|
float pilot_volume;
|
|
delay_line_t delay;
|
|
delay_line_t delay_pilot;
|
|
firhilbf stereo_hilbert;
|
|
} StereoEncoder;
|
|
|
|
void init_stereo_encoder(StereoEncoder *st, uint8_t stereo_ssb, uint8_t multiplier, Oscillator *osc, float audio_volume, float pilot_volume);
|
|
float stereo_encode(StereoEncoder* st, uint8_t enabled, float left, float right, float *audio);
|
|
void exit_stereo_encoder(StereoEncoder* st); |