Cerberus/bfsk.hpp
wheelchairy 118875234a upd
2025-01-28 22:33:54 +03:00

12 lines
331 B
C++

#pragma once
#include <vector>
#include <cstdint>
constexpr double BFSK_FREQ0=1000.0;
constexpr double BFSK_FREQ1=2000.0;
constexpr double BFSK_BAUD=100.0;
constexpr int SAMPLE_RATE=44100;
std::vector<float> bfskModulate(const std::vector<uint8_t> &data);
std::vector<uint8_t> bfskDemodulate(const std::vector<float> &monoData);