Change audio sampling rates on NBFM, AM modes.

This commit is contained in:
Jared Boone
2016-01-29 15:33:01 -08:00
parent 0e436ded14
commit db642cac8d
5 changed files with 32 additions and 15 deletions

View File

@@ -42,9 +42,10 @@ private:
dst.data(),
dst.size()
};
const buffer_f32_t work_audio_buffer {
(float*)dst.data(),
sizeof(dst) / sizeof(float)
std::array<float, 32> audio;
const buffer_f32_t audio_buffer {
audio.data(),
audio.size()
};
dsp::decimate::FIRC8xR16x24FS4Decim8 decim_0;
@@ -54,6 +55,9 @@ private:
uint32_t channel_filter_pass_f = 0;
uint32_t channel_filter_stop_f = 0;
static constexpr size_t post_channel_decimation_factor = 3;
BlockDecimator<32> channel_block_buffer { post_channel_decimation_factor };
dsp::demodulate::FM demod;
AudioOutput audio_output;