0
0
mirror of https://github.com/Make-Magazine/PirateRadio synced 2025-10-05 16:02:52 +02:00

improved quality

That will cause the pilot tone deviation to increase from 3.9 kHz to 7 kHz (make it stronger.)
It will also cause the modulation to decrease, i.e. make the sound quieter. Which is a good thing, because as delivered it over-modulates, it disturbs neighboring channels
This commit is contained in:
ric96
2014-04-08 23:54:45 +05:30
parent 92af42f486
commit 484e189106

2
pifm.c
View File

@@ -502,7 +502,7 @@ public:
for (int i=0; i<consumable; i++) {
state = (state+1) %8;
// equation straight from wikipedia...
buffer[i] = ((left[i]+right[i])/2 + (left[i]-right[i])/2*sinLut[state*2])*0.9 + 0.1*sinLut[state];
buffer[i] = ((left[i]+right[i])/2 + (left[i]-right[i])/2*sinLut[state*2])*0.83 + 0.17*sinLut[state];
}
next->consume(buffer, consumable);