mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
using SPC(64800, 43072): mode 6: 8PSK, 2700 Hz BW and about 10 seconds long mode 7: 8PSK, 2500 Hz BW and about 11 seconds long mode 8: QPSK, 2500 Hz BW and about 16 seconds long mode 9: QPSK, 2250 Hz BW and about 18 seconds long using SPC(64512, 43072): mode 10: 8PSK, 3200 Hz BW and about 9 seconds long mode 11: 8PSK, 2400 Hz BW and about 11 seconds long mode 12: QPSK, 2400 Hz BW and about 16 seconds long mode 13: QPSK, 1600 Hz BW and about 24 seconds long
30 lines
591 B
Makefile
Vendored
30 lines
591 B
Makefile
Vendored
|
|
CXXFLAGS = -std=c++17 -W -Wall -Ofast -fno-exceptions -fno-rtti -I../dsp -I../code
|
|
CXX = clang++ -stdlib=libc++ -march=native
|
|
#CXX = g++ -march=native
|
|
|
|
#CXX = armv7a-hardfloat-linux-gnueabi-g++ -static -mfpu=neon -march=armv7-a
|
|
#QEMU = qemu-arm
|
|
|
|
.PHONY: all
|
|
|
|
all: encode decode
|
|
|
|
test: encode decode
|
|
$(QEMU) ./encode encoded.wav 8000 8 1 /dev/urandom
|
|
$(QEMU) ./decode /dev/null encoded.wav
|
|
|
|
encode: encode.cc
|
|
$(CXX) $(CXXFLAGS) $< -o $@
|
|
|
|
decode: decode.cc
|
|
$(CXX) $(CXXFLAGS) $< -o $@
|
|
|
|
freezer: freezer.cc
|
|
$(CXX) $(CXXFLAGS) $< -o $@
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
rm -f encode decode freezer
|
|
|