Fix comment

This commit is contained in:
DiSlord 2020-03-21 16:47:32 +03:00
parent e837578586
commit 4a44ecc37c

2
dsp.c
View file

@ -44,7 +44,7 @@ const int16_t sincos_tbl[48][2] = {
void generate_DSP_Table(int offset){
float audio_freq = 48000.0;
// N = offset * AUDIO_SAMPLES_COUNT / audio_freq; should be integer
// AUDIO_SAMPLES_COUNT = N * audio_freq / offset; N - minimum integer value for get integer SAMPLE_LEN
// AUDIO_SAMPLES_COUNT = N * audio_freq / offset; N - minimum integer value for get integer AUDIO_SAMPLES_COUNT
// Bandwidth on one step = audio_freq / AUDIO_SAMPLES_COUNT
float step = 2 * VNA_PI * offset / audio_freq;
float v = step/2;