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:
@@ -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);
|
||||
Reference in New Issue
Block a user