0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00
This commit is contained in:
2026-02-15 15:00:20 +01:00
parent b0bea04e96
commit 1089f8d1ea
3 changed files with 51 additions and 53 deletions

View File

@@ -1,7 +1,5 @@
#pragma once
#define STEREO_SSB 12
#include <stdint.h>
#include "../dsp/oscillator.h"
#include <liquid/liquid.h>
@@ -16,8 +14,9 @@ typedef struct
float pilot_volume;
delay_line_t delay;
delay_line_t delay_pilot;
firhilbf stereo_hilbert;
} StereoEncoder;
void init_stereo_encoder(StereoEncoder *st, uint8_t multiplier, Oscillator *osc, float audio_volume, float pilot_volume);
float stereo_encode(StereoEncoder* st, uint8_t enabled, float left, float right, firhilbf *hilbert);
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);
void exit_stereo_encoder(StereoEncoder* st);