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 12:52:04 +01:00
parent a1e7a90efc
commit cdef85de4d
3 changed files with 7 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ void init_stereo_encoder(StereoEncoder* st, uint8_t multiplier, Oscillator* osc,
}
#ifdef STEREO_SSB
float stereo_encode(StereoEncoder* st, uint8_t enabled, float left, float right, firhilbf hilbert) {
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
@@ -47,7 +47,7 @@ float stereo_encode(StereoEncoder* st, uint8_t enabled, float left, float right)
#ifdef STEREO_SSB
float complex stereo_hilbert;
firhilbf_r2c_execute(hilbert, side, &stereo_hilbert);
firhilbf_r2c_execute(*hilbert, side, &stereo_hilbert);
float signalx2cos = get_oscillator_cos_multiplier_ni(st->osc, st->multiplier * 2.0f);
#endif

View File

@@ -30,7 +30,7 @@ typedef struct
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);
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