Increased max frame length. Other minor tweaks.

This commit is contained in:
Mark Qvist 2015-08-05 21:02:16 +02:00
parent 777a0806f6
commit 997e64ff8b
3 changed files with 11 additions and 6 deletions

View file

@ -52,11 +52,16 @@ inline static uint8_t sinSample(uint16_t i) {
#define SAMPLESPERBIT (SAMPLERATE / BITRATE)
#define PHASE_INC 1 // Nudge by an eigth of a sample each adjustment
#if BITRATE == 960
#if BITRATE == 300
#define FILTER_CUTOFF 600
#define MARK_FREQ 1600
#define SPACE_FREQ 1800
#define PHASE_BITS 10 // How much to increment phase counter each sample
#elif BITRATE == 960
#define FILTER_CUTOFF 600
#define MARK_FREQ 960
#define SPACE_FREQ 1600
#define PHASE_BITS 10 // How much to increment phase counter each sample
#define PHASE_BITS 10
#elif BITRATE == 1200
#define FILTER_CUTOFF 600
#define MARK_FREQ 1200