Skip to content

Commit

Permalink
Fixed type of data that written to wav file (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
redradist authored May 21, 2024
1 parent 7a35ca3 commit 646253a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _sdr/_signal_processing/signal_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def write_wav(f, sample_freq, x):
"""
from scipy.io.wavfile import write

write(f, sample_freq, x)
write(f, sample_freq, x.astype(np.int16))


def can_store_file(path: str) -> bool:
Expand Down

0 comments on commit 646253a

Please sign in to comment.