Add support for AM to libmobile and libsdr

This commit is contained in:
Andreas Eversberg
2019-12-05 17:24:30 +01:00
parent c2f14834e5
commit 150a77b69d
26 changed files with 121 additions and 52 deletions

View File

@@ -111,8 +111,8 @@ void am_modulate_complex(am_mod_t *mod, sample_t *amplitude, int num, float *bas
else if (phase >= 65536.0)
phase -= 65536.0;
} else {
*baseband++ = cos(phase) * vector;
*baseband++ = sin(phase) * vector;
*baseband++ += cos(phase) * vector;
*baseband++ += sin(phase) * vector;
phase += rot;
if (phase < 0.0)
phase += 2.0 * M_PI;