mirror of
https://github.com/romanz/amodem.git
synced 2026-04-19 12:46:00 +08:00
use real part at common.dumps()
This commit is contained in:
@@ -47,7 +47,7 @@ def loads(data):
|
||||
|
||||
|
||||
def dumps(sym, n=1):
|
||||
sym = sym.imag * scaling
|
||||
sym = sym.real * scaling
|
||||
sym = sym.astype('int16')
|
||||
data = sym.tostring()
|
||||
return data * n
|
||||
|
||||
Reference in New Issue
Block a user