mirror of
https://github.com/romanz/amodem.git
synced 2026-04-05 20:26:24 +08:00
calib: fix TypeError on config.frequencies
This commit is contained in:
@@ -36,7 +36,7 @@ def send(config, dst, volume_cmd=None, gain=1.0, limit=None):
|
|||||||
|
|
||||||
def frame_iter(config, src, frame_length):
|
def frame_iter(config, src, frame_length):
|
||||||
frame_size = frame_length * config.Nsym * config.sample_size
|
frame_size = frame_length * config.Nsym * config.sample_size
|
||||||
omegas = 2 * np.pi * config.frequencies / config.Fs
|
omegas = 2 * np.pi * np.array(config.frequencies) / config.Fs
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
data = src.read(frame_size)
|
data = src.read(frame_size)
|
||||||
|
|||||||
Reference in New Issue
Block a user