mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-31 00:39:17 +02:00
change some things
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
#define CLIPPER_THRESHOLD 0.425 // Adjust this as needed
|
#define CLIPPER_THRESHOLD 0.425 // Adjust this as needed
|
||||||
|
|
||||||
#define MONO_VOLUME 0.5f // L+R Signal
|
#define MONO_VOLUME 0.5f // L+R Signal
|
||||||
#define STEREO_VOLUME_AUDIO 0.5f // L-R signal (once demodulated)
|
#define STEREO_VOLUME_AUDIO 1.0f // L-R signal (once demodulated)
|
||||||
#define STEREO_VOLUME_MODULATION 0.4f // L-R signal (on MPX)
|
#define STEREO_VOLUME_MODULATION 0.4f // L-R signal (on MPX)
|
||||||
|
|
||||||
#ifdef PREEMPHASIS
|
#ifdef PREEMPHASIS
|
||||||
|
|||||||
+2
-1
@@ -21,6 +21,7 @@
|
|||||||
#define CLIPPER_THRESHOLD 0.425 // Adjust this as needed, this also limits deviation, so if you set this to 0.5 then the deviation will be limited to half
|
#define CLIPPER_THRESHOLD 0.425 // Adjust this as needed, this also limits deviation, so if you set this to 0.5 then the deviation will be limited to half
|
||||||
|
|
||||||
#define VOLUME 0.03f // SCA Volume
|
#define VOLUME 0.03f // SCA Volume
|
||||||
|
#define VOLUME_AUDIO 1.0f // SCA Audio volume
|
||||||
#define FREQUENCY 67000 // SCA Frequency
|
#define FREQUENCY 67000 // SCA Frequency
|
||||||
#define DEVIATION 6000 // SCA Deviation
|
#define DEVIATION 6000 // SCA Deviation
|
||||||
|
|
||||||
@@ -150,7 +151,7 @@ int main() {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
change_oscillator_frequency(&osc, (FREQUENCY+(current_input*DEVIATION)));
|
change_oscillator_frequency(&osc, (FREQUENCY+((current_input*VOLUME_AUDIO)*DEVIATION)));
|
||||||
signal[i] = get_oscillator_sin_sample(&osc)*VOLUME;
|
signal[i] = get_oscillator_sin_sample(&osc)*VOLUME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user