Calculate length of byte more accurately

pull/2/head
Philip Heron 2012-08-26 19:38:14 +01:00
rodzic cb17167f09
commit 92253824ec
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -220,7 +220,7 @@ void rtty::restart()
posfreq = negfreq = 0.0;
/* The length of a byte (including start, stop and parity bits */
bytelen = (1 + nbits + stl + (rtty_parity == RTTY_PARITY_NONE ? 0 : 1)) * symbollen;
bytelen = (1 + nbits + stl + (rtty_parity == RTTY_PARITY_NONE ? 0 : 1)) * samplerate / rtty_baud + 0.5;
metric = 0.0;