mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
now?
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -238,7 +238,11 @@ int run_fm95(const FM95_Config config, FM95_Runtime* runtime) {
|
||||
mod_r = apply_preemphasis(&runtime->preemp_r, mod_r);
|
||||
}
|
||||
|
||||
#ifdef STEREO_SSB
|
||||
mpx = stereo_encode(&runtime->stencode, config.stereo, mod_l, mod_r, &runtime.hilbert);
|
||||
#else
|
||||
mpx = stereo_encode(&runtime->stencode, config.stereo, mod_l, mod_r);
|
||||
#endif
|
||||
|
||||
if(rds_on) {
|
||||
float rds_level = config.volumes.rds;
|
||||
|
||||
Reference in New Issue
Block a user