0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 03:23:54 +01:00

clean up ssb stuff a little

This commit is contained in:
2026-02-15 13:27:53 +01:00
parent 6ff653f5d4
commit 36b861b7e5
6 changed files with 46 additions and 45 deletions

View File

@@ -4,17 +4,9 @@
#include <stdint.h>
#include "../dsp/oscillator.h"
#ifdef STEREO_SSB
#include <liquid/liquid.h>
#include <complex.h>
#include <string.h>
typedef struct delay_line_t {
float *buffer;
uint32_t delay;
uint32_t idx;
} delay_line_t;
#endif
#include "../dsp/delay.h"
typedef struct
{
@@ -22,15 +14,9 @@ typedef struct
Oscillator* osc;
float audio_volume;
float pilot_volume;
#ifdef STEREO_SSB
struct delay_line_t delay;
#endif
} StereoEncoder;
void init_stereo_encoder(StereoEncoder *st, uint8_t multiplier, Oscillator *osc, float audio_volume, float pilot_volume);
#ifdef STEREO_SSB
float stereo_encode(StereoEncoder* st, uint8_t enabled, float left, float right, firhilbf *hilbert);
#else
float stereo_encode(StereoEncoder* st, uint8_t enabled, float left, float right);
#endif
void exit_stereo_encoder(StereoEncoder* st);