Added Soundboard

file.cpp: scan_root_files
proc_audiotx.cpp: bandwidth setting
ui_widget.cpp: button on_focus
This commit is contained in:
furrtek 2016-08-26 08:11:24 +02:00
parent 5de6349199
commit f7e0f36bd9
19 changed files with 462 additions and 121 deletions

View file

@ -106,7 +106,8 @@ void AFSKProcessor::execute(const buffer_c8_t& buffer) {
// FM
// 1<<18 = 262144
// m = (262144 * BW) / 2280000 (* 115, see ui_lcr afsk_bw setting)
// m = (262144 * a) / 2280000
// a = 262144 / 2280000 (*1000 = 115, see ui_lcr afsk_bw setting)
frq = tone_sample * afsk_bw;
phase = (phase + frq);