mirror of
https://github.com/romanz/amodem.git
synced 2026-05-10 05:17:38 +08:00
config: use lower sample rate for slowest bitrates
this will use much less CPU.
This commit is contained in:
@@ -51,24 +51,24 @@ class Configuration(object):
|
|||||||
|
|
||||||
# MODEM configurations for various bitrates [kbps]
|
# MODEM configurations for various bitrates [kbps]
|
||||||
bitrates = {
|
bitrates = {
|
||||||
1: Configuration(F0=8e3, Npoints=2, Nfreq=1),
|
1: Configuration(F0=2e3, Npoints=2, Nfreq=1, Fs=8e3),
|
||||||
2: Configuration(F0=8e3, Npoints=4, Nfreq=1),
|
2: Configuration(F0=2e3, Npoints=4, Nfreq=1, Fs=8e3),
|
||||||
4: Configuration(F0=8e3, Npoints=16, Nfreq=1),
|
4: Configuration(F0=2e3, Npoints=16, Nfreq=1, Fs=8e3),
|
||||||
8: Configuration(F0=8e3, Npoints=16, Nfreq=2),
|
8: Configuration(F0=2e3, Npoints=16, Nfreq=2, Fs=8e3),
|
||||||
12: Configuration(F0=6e3, Npoints=16, Nfreq=3),
|
12: Configuration(F0=3e3, Npoints=16, Nfreq=3, Fs=16e3),
|
||||||
16: Configuration(F0=6e3, Npoints=16, Nfreq=4),
|
16: Configuration(F0=3e3, Npoints=16, Nfreq=4, Fs=16e3),
|
||||||
18: Configuration(F0=5e3, Npoints=16, Nfreq=5),
|
18: Configuration(F0=2e3, Npoints=16, Nfreq=5, Fs=16e3),
|
||||||
24: Configuration(F0=5e3, Npoints=16, Nfreq=6),
|
24: Configuration(F0=2e3, Npoints=16, Nfreq=6, Fs=16e3),
|
||||||
28: Configuration(F0=4e3, Npoints=16, Nfreq=7),
|
28: Configuration(F0=4e3, Npoints=16, Nfreq=7, Fs=32e3),
|
||||||
32: Configuration(F0=3e3, Npoints=16, Nfreq=8),
|
32: Configuration(F0=3e3, Npoints=16, Nfreq=8, Fs=32e3),
|
||||||
36: Configuration(F0=4e3, Npoints=64, Nfreq=6),
|
36: Configuration(F0=4e3, Npoints=64, Nfreq=6, Fs=32e3),
|
||||||
42: Configuration(F0=4e3, Npoints=64, Nfreq=7),
|
42: Configuration(F0=4e3, Npoints=64, Nfreq=7, Fs=32e3),
|
||||||
48: Configuration(F0=3e3, Npoints=64, Nfreq=8),
|
48: Configuration(F0=3e3, Npoints=64, Nfreq=8, Fs=32e3),
|
||||||
54: Configuration(F0=3e3, Npoints=64, Nfreq=9),
|
54: Configuration(F0=3e3, Npoints=64, Nfreq=9, Fs=32e3),
|
||||||
60: Configuration(F0=2e3, Npoints=64, Nfreq=10),
|
60: Configuration(F0=2e3, Npoints=64, Nfreq=10, Fs=32e3),
|
||||||
64: Configuration(F0=3e3, Npoints=256, Nfreq=8),
|
64: Configuration(F0=3e3, Npoints=256, Nfreq=8, Fs=32e3),
|
||||||
72: Configuration(F0=2e3, Npoints=256, Nfreq=9),
|
72: Configuration(F0=2e3, Npoints=256, Nfreq=9, Fs=32e3),
|
||||||
80: Configuration(F0=2e3, Npoints=256, Nfreq=10),
|
80: Configuration(F0=2e3, Npoints=256, Nfreq=10, Fs=32e3),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user