mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
change some things
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#define CLIPPER_THRESHOLD 0.425 // Adjust this as needed
|
||||
|
||||
#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)
|
||||
|
||||
#ifdef PREEMPHASIS
|
||||
|
||||
@@ -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 VOLUME 0.03f // SCA Volume
|
||||
#define VOLUME_AUDIO 1.0f // SCA Audio volume
|
||||
#define FREQUENCY 67000 // SCA Frequency
|
||||
#define DEVIATION 6000 // SCA Deviation
|
||||
|
||||
@@ -150,7 +151,7 @@ int main() {
|
||||
#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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user