Changed the default NFM snap interval

This commit is contained in:
Ryzerth
2021-06-17 20:14:23 +02:00
parent b5d38c71ce
commit da2f4fcf3a
6 changed files with 160 additions and 33 deletions

View File

@ -314,8 +314,8 @@ private:
static void _audioHandler(dsp::stereo_t *data, int count, void *ctx) {
RecorderModule* _this = (RecorderModule*)ctx;
for (int i = 0; i < count; i++) {
_this->wavSampleBuf[(2*i)] = data[i].l * 32768.0f;
_this->wavSampleBuf[(2*i) + 1] = data[i].r * 32768.0f;
_this->wavSampleBuf[(2*i)] = data[i].l * 32767.0f;
_this->wavSampleBuf[(2*i) + 1] = data[i].r * 32767.0f;
}
_this->audioWriter->writeSamples(_this->wavSampleBuf, count * 2 * sizeof(int16_t));
_this->samplesWritten += count;
@ -324,8 +324,8 @@ private:
static void _basebandHandler(dsp::complex_t *data, int count, void *ctx) {
RecorderModule* _this = (RecorderModule*)ctx;
for (int i = 0; i < count; i++) {
_this->wavSampleBuf[(2*i)] = data[i].re * 32768.0f;
_this->wavSampleBuf[(2*i) + 1] = data[i].im * 32768.0f;
_this->wavSampleBuf[(2*i)] = data[i].re * 32767.0f;
_this->wavSampleBuf[(2*i) + 1] = data[i].im * 32767.0f;
}
_this->basebandWriter->writeSamples(_this->wavSampleBuf, count * 2 * sizeof(int16_t));
_this->samplesWritten += count;